#AFA97D#AFA97D

#AFA97D is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.9% C 0.060 H 101.2°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#AFA97D
RGBrgb(175, 169, 125)
HSLhsl(53, 24%, 59%)
HSVhsv(53, 29%, 69%)
CMYKcmyk(0%, 3.4%, 28.6%, 31.4%)
CIE-LABlab(68.73, -4.90, 23.54)
CIE-LCHlch(68.73, 24.05, 101.77°)
OKLaboklab(72.87% -0.0117 0.0592)
OKLCHoklch(72.87% 0.06 101.2)
XYZxyz(35.5690, 38.9713, 25.0465)
Luminance0.3897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA97D #7D83AF
analogous
#AF907D #AFA97D #9CAF7D
triadic
#AFA97D #7DAFA9 #A97DAF
tetradic
#AFA97D #7DAF90 #7D83AF #AF7D9C
square
#AFA97D #7DAF90 #7D83AF #AF7D9C
split-complementary
#AFA97D #7D9CAF #907DAF
monochromatic
#6E6944 #948D5B #AFA97D #C6C2A3 #DEDBC9

Accessibility & contrast

On white

2.39
#AFA97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#AFA97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA97D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA97D#FFFFFF#000000##000000
##AFA97D1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A67A
Deuteranopia (green-blind)
#B3A97F
Tritanopia (blue-blind)
#B7A39D
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa97d;
/* rgb */ color: rgb(175, 169, 125);
/* oklch */ color: oklch(72.9% 0.060 101.2);
Tailwind
colors: {
  custom: {
    50: '#c7c2a3',
    500: '#afa97d',
    950: '#000000',
  },
}
SCSS
$custom: #afa97d;
$custom-light: #c7c2a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa97d",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 125
  },
  "hsl": {
    "h": 52.8,
    "s": 23.81,
    "l": 58.824
  },
  "oklch": {
    "l": 0.72872,
    "c": 0.06036,
    "h": 101.2
  },
  "luminance": 0.38971
}

Semantic roles & 50–950 ramp

primary
#AFA97D
secondary
#BABCCE
accent
#72C068
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA97D

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

Preview Lab → · Contrast checker → · Palette generator →

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