#987F21#987F21

#987F21 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.112 H 93.3°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#987F21
RGBrgb(152, 127, 33)
HSLhsl(47, 64%, 36%)
HSVhsv(47, 78%, 60%)
CMYKcmyk(0%, 16.4%, 78.3%, 40.4%)
CIE-LABlab(53.99, -0.31, 51.11)
CIE-LCHlch(53.99, 51.11, 90.34°)
OKLaboklab(60.33% -0.0064 0.1117)
OKLCHoklch(60.33% 0.112 93.3)
XYZxyz(20.8139, 21.9652, 4.5820)
Luminance0.2196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F21 #213A98
analogous
#984421 #987F21 #769821
triadic
#987F21 #21987F #7F2198
tetradic
#987F21 #219844 #213A98 #982176
square
#987F21 #219844 #213A98 #982176
split-complementary
#987F21 #217698 #442198
monochromatic
#332B0B #665516 #987F21 #CAA92C #DBBF59

Accessibility & contrast

On white

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

On black

5.39
#987F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F21
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F21#FFFFFF#000000##000000
##987F211.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0E
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f21;
/* rgb */ color: rgb(152, 127, 33);
/* oklch */ color: oklch(60.3% 0.112 93.3);
Tailwind
colors: {
  custom: {
    50: '#baa364',
    500: '#987f21',
    950: '#000000',
  },
}
SCSS
$custom: #987f21;
$custom-light: #baa364;
$custom-dark: #000000;
JSON
{
  "hex": "#987f21",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 47.395,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60333,
    "c": 0.11189,
    "h": 93.3
  },
  "luminance": 0.21964
}

Semantic roles & 50–950 ramp

primary
#987F21
secondary
#566CBF
accent
#64E740
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F21

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

Preview Lab → · Contrast checker → · Palette generator →

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