#AFA87D#AFA87D

#AFA87D is a light, muted yellow. Relative luminance 0.386; OKLCH L 72.7% C 0.059 H 99.9°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFA87D
RGBrgb(175, 168, 125)
HSLhsl(52, 24%, 59%)
HSVhsv(52, 29%, 69%)
CMYKcmyk(0%, 4%, 28.6%, 31.4%)
CIE-LABlab(68.46, -4.37, 23.18)
CIE-LCHlch(68.46, 23.59, 100.67°)
OKLaboklab(72.66% -0.0102 0.0583)
OKLCHoklch(72.66% 0.059 99.9)
XYZxyz(35.3837, 38.6006, 24.9848)
Luminance0.3860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87D #7D84AF
analogous
#AF8F7D #AFA87D #9DAF7D
triadic
#AFA87D #7DAFA8 #A87DAF
tetradic
#AFA87D #7DAF8F #7D84AF #AF7D9D
square
#AFA87D #7DAF8F #7D84AF #AF7D9D
split-complementary
#AFA87D #7D9DAF #8F7DAF
monochromatic
#6E6844 #948C5B #AFA87D #C6C1A3 #DEDBC9

Accessibility & contrast

On white

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

On black

8.72
#AFA87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA87D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA87D#FFFFFF#000000##000000
##AFA87D1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A57A
Deuteranopia (green-blind)
#B2A87F
Tritanopia (blue-blind)
#B7A29D
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa87d;
/* rgb */ color: rgb(175, 168, 125);
/* oklch */ color: oklch(72.7% 0.059 99.9);
Tailwind
colors: {
  custom: {
    50: '#c7c1a3',
    500: '#afa87d',
    950: '#000000',
  },
}
SCSS
$custom: #afa87d;
$custom-light: #c7c1a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87d",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 125
  },
  "hsl": {
    "h": 51.6,
    "s": 23.81,
    "l": 58.824
  },
  "oklch": {
    "l": 0.72659,
    "c": 0.05923,
    "h": 99.9
  },
  "luminance": 0.386
}

Semantic roles & 50–950 ramp

primary
#AFA87D
secondary
#BABDCE
accent
#74C068
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA87D

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

Preview Lab → · Contrast checker → · Palette generator →

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