#AFB97B#AFB97B

#AFB97B is a light, moderate yellow. Relative luminance 0.452; OKLCH L 76.3% C 0.084 H 115.9°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#AFB97B
RGBrgb(175, 185, 123)
HSLhsl(70, 31%, 60%)
HSVhsv(70, 34%, 73%)
CMYKcmyk(5.4%, 0%, 33.5%, 27.5%)
CIE-LABlab(73.05, -13.56, 30.36)
CIE-LCHlch(73.05, 33.25, 114.06°)
OKLaboklab(76.29% -0.0365 0.0753)
OKLCHoklch(76.29% 0.084 115.9)
XYZxyz(38.6033, 45.2423, 25.4340)
Luminance0.4524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB97B #857BB9
analogous
#B9A47B #AFB97B #90B97B
triadic
#AFB97B #7BAFB9 #B97BAF
tetradic
#AFB97B #7BB9A4 #857BB9 #B97B90
square
#AFB97B #7BB9A4 #857BB9 #B97B90
split-complementary
#AFB97B #7B90B9 #A47BB9
monochromatic
#707940 #95A156 #AFB97B #C7CEA3 #DFE3CB

Accessibility & contrast

On white

2.09
#AFB97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#AFB97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB97B
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB97B#FFFFFF#000000##000000
##AFB97B1.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1B377
Deuteranopia (green-blind)
#C0B47E
Tritanopia (blue-blind)
#B6B2A9
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afb97b;
/* rgb */ color: rgb(175, 185, 123);
/* oklch */ color: oklch(76.3% 0.084 115.9);
Tailwind
colors: {
  custom: {
    50: '#c7cea2',
    500: '#afb97b',
    950: '#000000',
  },
}
SCSS
$custom: #afb97b;
$custom-light: #c7cea2;
$custom-dark: #000000;
JSON
{
  "hex": "#afb97b",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 123
  },
  "hsl": {
    "h": 69.677,
    "s": 30.693,
    "l": 60.392
  },
  "oklch": {
    "l": 0.7629,
    "c": 0.0837,
    "h": 115.9
  },
  "luminance": 0.45242
}

Semantic roles & 50–950 ramp

primary
#AFB97B
secondary
#C0BCD4
accent
#3CA94E
background
#FCFCFA
surface
#F8F9F3
border
#D1D2CD
text
#13130F
muted
#82827F

Preview Lab

Preview with #AFB97B

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

Preview Lab → · Contrast checker → · Palette generator →

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