#AFA87B#AFA87B

#AFA87B is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.6% C 0.062 H 100.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA87B
RGBrgb(175, 168, 123)
HSLhsl(52, 25%, 58%)
HSVhsv(52, 30%, 69%)
CMYKcmyk(0%, 4%, 29.7%, 31.4%)
CIE-LABlab(68.42, -4.64, 24.21)
CIE-LCHlch(68.42, 24.65, 100.85°)
OKLaboklab(72.62% -0.0111 0.0608)
OKLCHoklch(72.62% 0.062 100.3)
XYZxyz(35.2572, 38.5500, 24.3187)
Luminance0.3855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87B #7B82AF
analogous
#AF8E7B #AFA87B #9CAF7B
triadic
#AFA87B #7BAFA8 #A87BAF
tetradic
#AFA87B #7BAF8E #7B82AF #AF7B9C
square
#AFA87B #7BAF8E #7B82AF #AF7B9C
split-complementary
#AFA87B #7B9CAF #8E7BAF
monochromatic
#6D6842 #938C59 #AFA87B #C6C1A1 #DDDAC7

Accessibility & contrast

On white

2.41
#AFA87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFA87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA87B
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA87B#FFFFFF#000000##000000
##AFA87B1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A578
Deuteranopia (green-blind)
#B3A87D
Tritanopia (blue-blind)
#B7A29C
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa87b;
/* rgb */ color: rgb(175, 168, 123);
/* oklch */ color: oklch(72.6% 0.062 100.3);
Tailwind
colors: {
  custom: {
    50: '#c7c1a1',
    500: '#afa87b',
    950: '#000000',
  },
}
SCSS
$custom: #afa87b;
$custom-light: #c7c1a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87b",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 123
  },
  "hsl": {
    "h": 51.923,
    "s": 24.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.72617,
    "c": 0.06178,
    "h": 100.3
  },
  "luminance": 0.38549
}

Semantic roles & 50–950 ramp

primary
#AFA87B
secondary
#B9BBCD
accent
#73C167
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120F
muted
#82817E

Preview Lab

Preview with #AFA87B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFA87B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva