#AFA587#AFA587

#AFA587 is a light, muted yellow. Relative luminance 0.378; OKLCH L 72.2% C 0.043 H 91.8°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA587
RGBrgb(175, 165, 135)
HSLhsl(45, 20%, 61%)
HSVhsv(45, 23%, 69%)
CMYKcmyk(0%, 5.7%, 22.9%, 31.4%)
CIE-LABlab(67.85, -1.33, 16.88)
CIE-LCHlch(67.85, 16.94, 94.51°)
OKLaboklab(72.24% -0.0013 0.0432)
OKLCHoklch(72.24% 0.043 91.8)
XYZxyz(35.5075, 37.7742, 28.3376)
Luminance0.3777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA587 #8791AF
analogous
#AF9187 #AFA587 #A5AF87
triadic
#AFA587 #87AFA5 #A587AF
tetradic
#AFA587 #87AF91 #8791AF #AF87A5
square
#AFA587 #87AF91 #8791AF #AF87A5
split-complementary
#AFA587 #87A5AF #9187AF
monochromatic
#71674B #958964 #AFA587 #C7C1AC #E0DCD0

Accessibility & contrast

On white

2.45
#AFA587 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA587 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA587
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA587#FFFFFF#000000##000000
##AFA5871.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ACA485
Deuteranopia (green-blind)
#AFA788
Tritanopia (blue-blind)
#B6A09D
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa587;
/* rgb */ color: rgb(175, 165, 135);
/* oklch */ color: oklch(72.2% 0.043 91.8);
Tailwind
colors: {
  custom: {
    50: '#c7bfaa',
    500: '#afa587',
    950: '#000000',
  },
}
SCSS
$custom: #afa587;
$custom-light: #c7bfaa;
$custom-dark: #000000;
JSON
{
  "hex": "#afa587",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 135
  },
  "hsl": {
    "h": 45,
    "s": 20,
    "l": 60.784
  },
  "oklch": {
    "l": 0.72244,
    "c": 0.04319,
    "h": 91.8
  },
  "luminance": 0.37773
}

Semantic roles & 50–950 ramp

primary
#AFA587
secondary
#C1C5D0
accent
#5D9E47
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA587

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

Preview Lab → · Contrast checker → · Palette generator →

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