#AFA96F#AFA96F

#AFA96F is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.6% C 0.078 H 103.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#AFA96F
RGBrgb(175, 169, 111)
HSLhsl(54, 29%, 56%)
HSVhsv(54, 37%, 69%)
CMYKcmyk(0%, 3.4%, 36.6%, 31.4%)
CIE-LABlab(68.49, -6.69, 30.74)
CIE-LCHlch(68.49, 31.46, 102.28°)
OKLaboklab(72.6% -0.0176 0.0757)
OKLCHoklch(72.6% 0.078 103.1)
XYZxyz(34.7369, 38.6384, 20.6639)
Luminance0.3864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA96F #6F75AF
analogous
#AF896F #AFA96F #95AF6F
triadic
#AFA96F #6FAFA9 #A96FAF
tetradic
#AFA96F #6FAF89 #6F75AF #AF6F95
square
#AFA96F #6FAF89 #6F75AF #AF6F95
split-complementary
#AFA96F #6F95AF #896FAF
monochromatic
#69653A #918A50 #AFA96F #C5C096 #DBD8BE

Accessibility & contrast

On white

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

On black

8.73
#AFA96F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA96F
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA96F#FFFFFF#000000##000000
##AFA96F1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A56B
Deuteranopia (green-blind)
#B5A971
Tritanopia (blue-blind)
#B8A29A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa96f;
/* rgb */ color: rgb(175, 169, 111);
/* oklch */ color: oklch(72.6% 0.078 103.1);
Tailwind
colors: {
  custom: {
    50: '#c8c299',
    500: '#afa96f',
    950: '#000000',
  },
}
SCSS
$custom: #afa96f;
$custom-light: #c8c299;
$custom-dark: #000000;
JSON
{
  "hex": "#afa96f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 111
  },
  "hsl": {
    "h": 54.375,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.72601,
    "c": 0.07776,
    "h": 103.1
  },
  "luminance": 0.38638
}

Semantic roles & 50–950 ramp

primary
#AFA96F
secondary
#B0B2CA
accent
#6CC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA96F

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

Preview Lab → · Contrast checker → · Palette generator →

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