#987F33#987F33

#987F33 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.099 H 90.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#987F33
RGBrgb(152, 127, 51)
HSLhsl(45, 50%, 40%)
HSVhsv(45, 66%, 60%)
CMYKcmyk(0%, 16.4%, 66.4%, 40.4%)
CIE-LABlab(54.13, 0.66, 43.62)
CIE-LCHlch(54.13, 43.63, 89.14°)
OKLaboklab(60.49% -0.0014 0.0993)
OKLCHoklch(60.49% 0.099 90.8)
XYZxyz(21.1369, 22.0944, 6.2826)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F33 #334C98
analogous
#984D33 #987F33 #7E9833
triadic
#987F33 #33987F #7F3398
tetradic
#987F33 #33984D #334C98 #98337E
square
#987F33 #33984D #334C98 #98337E
split-complementary
#987F33 #337E98 #4D3398
monochromatic
#3C3214 #6A5924 #987F33 #C1A347 #D1BA75

Accessibility & contrast

On white

3.88
#987F33 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#987F33 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F33
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F33#FFFFFF#000000##000000
##987F331.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D2A
Deuteranopia (green-blind)
#938436
Tritanopia (blue-blind)
#A4756F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f33;
/* rgb */ color: rgb(152, 127, 51);
/* oklch */ color: oklch(60.5% 0.099 90.8);
Tailwind
colors: {
  custom: {
    50: '#b9a36e',
    500: '#987f33',
    950: '#000000',
  },
}
SCSS
$custom: #987f33;
$custom-light: #b9a36e;
$custom-dark: #000000;
JSON
{
  "hex": "#987f33",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 51
  },
  "hsl": {
    "h": 45.149,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.60485,
    "c": 0.09928,
    "h": 90.8
  },
  "luminance": 0.22093
}

Semantic roles & 50–950 ramp

primary
#987F33
secondary
#6E80B9
accent
#71D94F
background
#FBFAF6
surface
#F7F3EC
border
#D0CDC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F33

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

Preview Lab → · Contrast checker → · Palette generator →

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