#987F29#987F29

#987F29 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.4% C 0.107 H 92.3°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#987F29
RGBrgb(152, 127, 41)
HSLhsl(46, 58%, 38%)
HSVhsv(46, 73%, 60%)
CMYKcmyk(0%, 16.4%, 73%, 40.4%)
CIE-LABlab(54.04, 0.07, 48.00)
CIE-LCHlch(54.04, 48.00, 89.92°)
OKLaboklab(60.39% -0.0044 0.1068)
OKLCHoklch(60.39% 0.107 92.3)
XYZxyz(20.9396, 22.0155, 5.2439)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F29 #294298
analogous
#984729 #987F29 #7A9829
triadic
#987F29 #29987F #7F2998
tetradic
#987F29 #299847 #294298 #98297A
square
#987F29 #299847 #294298 #98297A
split-complementary
#987F29 #297A98 #472998
monochromatic
#382E0F #68571C #987F29 #C8A736 #D6BC66

Accessibility & contrast

On white

3.89
#987F29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#987F29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F29
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F29#FFFFFF#000000##000000
##987F291.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1C
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#A5746E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f29;
/* rgb */ color: rgb(152, 127, 41);
/* oklch */ color: oklch(60.4% 0.107 92.3);
Tailwind
colors: {
  custom: {
    50: '#baa368',
    500: '#987f29',
    950: '#000000',
  },
}
SCSS
$custom: #987f29;
$custom-light: #baa368;
$custom-dark: #000000;
JSON
{
  "hex": "#987f29",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 41
  },
  "hsl": {
    "h": 46.486,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.60392,
    "c": 0.10684,
    "h": 92.3
  },
  "luminance": 0.22014
}

Semantic roles & 50–950 ramp

primary
#987F29
secondary
#6175BC
accent
#6AE147
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F29

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

Preview Lab → · Contrast checker → · Palette generator →

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