#AFA96C#AFA96C

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

Color values

HEX#AFA96C
RGBrgb(175, 169, 108)
HSLhsl(55, 30%, 55%)
HSVhsv(55, 38%, 69%)
CMYKcmyk(0%, 3.4%, 38.3%, 31.4%)
CIE-LABlab(68.44, -7.05, 32.26)
CIE-LCHlch(68.44, 33.02, 102.32°)
OKLaboklab(72.55% -0.0188 0.0791)
OKLCHoklch(72.55% 0.081 103.4)
XYZxyz(34.5745, 38.5735, 19.8086)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA96C #6C72AF
analogous
#AF876C #AFA96C #93AF6C
triadic
#AFA96C #6CAFA9 #A96CAF
tetradic
#AFA96C #6CAF87 #6C72AF #AF6C93
square
#AFA96C #6CAF87 #6C72AF #AF6C93
split-complementary
#AFA96C #6C93AF #876CAF
monochromatic
#686439 #908A4E #AFA96C #C5C094 #DAD7BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA96C#FFFFFF#000000##000000
##AFA96C1.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)
#B3A567
Deuteranopia (green-blind)
#B5A86E
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa96c;
/* rgb */ color: rgb(175, 169, 108);
/* oklch */ color: oklch(72.5% 0.081 103.4);
Tailwind
colors: {
  custom: {
    50: '#c8c297',
    500: '#afa96c',
    950: '#000000',
  },
}
SCSS
$custom: #afa96c;
$custom-light: #c8c297;
$custom-dark: #000000;
JSON
{
  "hex": "#afa96c",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 108
  },
  "hsl": {
    "h": 54.627,
    "s": 29.515,
    "l": 55.49
  },
  "oklch": {
    "l": 0.72548,
    "c": 0.08134,
    "h": 103.4
  },
  "luminance": 0.38573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA96C

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

Preview Lab → · Contrast checker → · Palette generator →

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