#987D29#987D29

#987D29 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.106 H 90.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#987D29
RGBrgb(152, 125, 41)
HSLhsl(45, 58%, 38%)
HSVhsv(45, 73%, 60%)
CMYKcmyk(0%, 17.8%, 73%, 40.4%)
CIE-LABlab(53.50, 1.19, 47.45)
CIE-LCHlch(53.50, 47.47, 88.56°)
OKLaboklab(59.96% -0.0012 0.1056)
OKLCHoklch(59.96% 0.106 90.6)
XYZxyz(20.6839, 21.5040, 5.1586)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D29 #294498
analogous
#984529 #987D29 #7C9829
triadic
#987D29 #29987D #7D2998
tetradic
#987D29 #299845 #294498 #98297C
square
#987D29 #299845 #294498 #98297C
split-complementary
#987D29 #297C98 #452998
monochromatic
#382E0F #68551C #987D29 #C8A536 #D6BA66

Accessibility & contrast

On white

3.96
#987D29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#987D29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D29
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D29#FFFFFF#000000##000000
##987D291.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1D
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d29;
/* rgb */ color: rgb(152, 125, 41);
/* oklch */ color: oklch(60.0% 0.106 90.6);
Tailwind
colors: {
  custom: {
    50: '#baa268',
    500: '#987d29',
    950: '#000000',
  },
}
SCSS
$custom: #987d29;
$custom-light: #baa268;
$custom-dark: #000000;
JSON
{
  "hex": "#987d29",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 41
  },
  "hsl": {
    "h": 45.405,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.59961,
    "c": 0.1056,
    "h": 90.6
  },
  "luminance": 0.21503
}

Semantic roles & 50–950 ramp

primary
#987D29
secondary
#6177BC
accent
#6CE147
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D29

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

Preview Lab → · Contrast checker → · Palette generator →

#987D29 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva