#AFA96B#AFA96B

#AFA96B is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.5% C 0.083 H 103.5°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA96B
RGBrgb(175, 169, 107)
HSLhsl(55, 30%, 55%)
HSVhsv(55, 39%, 69%)
CMYKcmyk(0%, 3.4%, 38.9%, 31.4%)
CIE-LABlab(68.43, -7.16, 32.77)
CIE-LCHlch(68.43, 33.54, 102.33°)
OKLaboklab(72.53% -0.0192 0.0803)
OKLCHoklch(72.53% 0.083 103.5)
XYZxyz(34.5216, 38.5523, 19.5299)
Luminance0.3855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA96B #6B71AF
analogous
#AF876B #AFA96B #93AF6B
triadic
#AFA96B #6BAFA9 #A96BAF
tetradic
#AFA96B #6BAF87 #6B71AF #AF6B93
square
#AFA96B #6BAF87 #6B71AF #AF6B93
split-complementary
#AFA96B #6B93AF #876BAF
monochromatic
#686338 #8F8A4D #AFA96B #C4C093 #DAD7BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA96B#FFFFFF#000000##000000
##AFA96B1.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)
#B3A566
Deuteranopia (green-blind)
#B6A86D
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa96b;
/* rgb */ color: rgb(175, 169, 107);
/* oklch */ color: oklch(72.5% 0.083 103.5);
Tailwind
colors: {
  custom: {
    50: '#c8c296',
    500: '#afa96b',
    950: '#000000',
  },
}
SCSS
$custom: #afa96b;
$custom-light: #c8c296;
$custom-dark: #000000;
JSON
{
  "hex": "#afa96b",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 107
  },
  "hsl": {
    "h": 54.706,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.72531,
    "c": 0.08252,
    "h": 103.5
  },
  "luminance": 0.38551
}

Semantic roles & 50–950 ramp

primary
#AFA96B
secondary
#ADAFC9
accent
#6BC662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA96B

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

Preview Lab → · Contrast checker → · Palette generator →

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