Skip to content

CSS named color

SandyBrown #F4A460

SandyBrown (CSS keyword sandybrown) has the hex code #F4A460 and the RGB value rgb(244, 164, 96): a light, moderately saturated orange.

SandyBrown#F4A460

A light orange-tan (#f4a460) that looks more like a pale orange than a brown. Useful for warm, earthy accents.

Color codes for SandyBrown

Color codes for SandyBrown
CSS keywordsandybrown
HEX#F4A460
RGBrgb(244, 164, 96)
HSLhsl(28, 87%, 67%)
HWBhwb(28 38% 4%)
OKLCHoklch(78.4% 0.127 59.7)
CMYK (naive, no ICC profile)cmyk(0%, 33%, 61%, 4%)
Decimal16,032,864
Hue familyBrowns and tans

Contrast and accessibility

On sandybrown, black text has a contrast ratio of 10.32:1 and passes AAA at any text size; white text reaches 2.03:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on sandybrown10.32:1PassPassPassPass64.6
White text on sandybrown2.03:1FailFailFailFail−43.8
Sandybrown text on white2.03:1FailFailFailFail39.3
Sandybrown text on black10.32:1PassPassPassPass−63.0

Tints and shades

Each step mixes sandybrown with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, sandybrown, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #f5a968
  2. 15%
    #f6b278
  3. 25%
    #f7bb88
  4. 35%
    #f8c498
  5. 45%
    #f9cda8
  6. 55%
    #fad6b7
  7. 65%
    #fbdfc7
  8. 75%
    #fce8d7
  9. 85%
    #fdf1e7
  10. 95%
    #fefaf7

Shades (mixed with black)

  1. 5%
    #e89c5b
  2. 15%
    #cf8b52
  3. 25%
    #b77b48
  4. 35%
    #9f6b3e
  5. 45%
    #865a35
  6. 55%
    #6e4a2b
  7. 65%
    #553922
  8. 75%
    #3d2918
  9. 85%
    #25190e
  10. 95%
    #0c0805

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, sandybrown's complementary color is #63C3FF (close to deepskyblue), its analogous colors are #FF9888 and #D8B44E, and its triadic partners are #3FD3BB and #C5A6FE. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#63c3ff
Analogous−30°, +30°#ff9888#d8b44e
Triadic+120°, +240°#3fd3bb#c5a6fe
Split-complementary+150°, +210°#2fcee5#99b4ff

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

SandyBrown is a warm color: its hue is 28° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightsalmon#ffa07a3.9
orange#ffa5005.3
darksalmon#e9967a5.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-300#ffb86a5.5
orange-400#ff89046.6
amber-500#fd9a006.9

Code snippets

CSS
.element {
  color: sandybrown;
  background-color: #f4a460;
  border-color: rgb(244 164 96);
  outline-color: oklch(78.4% 0.127 59.7);
}
Tailwind CSS
<div class="bg-[#f4a460] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-sandybrown: #f4a460;
}
/* then use bg-sandybrown, text-sandybrown, border-sandybrown */
SwiftUI
import SwiftUI

extension Color {
  static let sandybrown = Color(red: 0.957, green: 0.643, blue: 0.376)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Sandybrown = Color(0xFFF4A460)
Flutter
import 'package:flutter/material.dart';

const sandybrown = Color(0xFFF4A460);
Android XML
<!-- res/values/colors.xml -->
<color name="sandybrown">#F4A460</color>

Frequently asked questions

What is the hex code for sandybrown?
The hex code for sandybrown is #F4A460. The same color is rgb(244, 164, 96), hsl(28, 87%, 67%) and oklch(78.4% 0.127 59.7), and in CSS you can also write the keyword sandybrown directly.
Is sandybrown a warm or cool color?
SandyBrown is a warm color: its hue is 28° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with sandybrown?
Rotating the hue in OKLCH while keeping lightness and chroma, sandybrown's complementary color is #63C3FF (close to deepskyblue), its analogous colors are #FF9888 and #D8B44E, and its triadic partners are #3FD3BB and #C5A6FE. For text on top, black gives the higher contrast.
Can you use white text on sandybrown?
White text on sandybrown has a contrast ratio of 2.03:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.32:1 and passes both AA and AAA. In APCA terms that is Lc −43.8 for white and Lc 64.6 for black.
What is the RGB value of sandybrown?
SandyBrown is rgb(244, 164, 96): red 244, green 164 and blue 96 on the 0 to 255 scale, or 95.7%, 64.3% and 37.6%. As a decimal integer it is 16032864.

Last reviewed by Arielton Oberek.