#987D21#987D21

#987D21 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.9% C 0.111 H 91.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#987D21
RGBrgb(152, 125, 33)
HSLhsl(46, 64%, 36%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 17.8%, 78.3%, 40.4%)
CIE-LABlab(53.44, 0.82, 50.60)
CIE-LCHlch(53.44, 50.60, 89.08°)
OKLaboklab(59.9% -0.0032 0.1106)
OKLCHoklch(59.9% 0.111 91.6)
XYZxyz(20.5582, 21.4537, 4.4967)
Luminance0.2145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D21 #213C98
analogous
#984221 #987D21 #789821
triadic
#987D21 #21987D #7D2198
tetradic
#987D21 #219842 #213C98 #982178
square
#987D21 #219842 #213C98 #982178
split-complementary
#987D21 #217898 #422198
monochromatic
#332A0B #665416 #987D21 #CAA62C #DBBD59

Accessibility & contrast

On white

3.97
#987D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#987D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D21
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D21#FFFFFF#000000##000000
##987D211.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0F
Deuteranopia (green-blind)
#928326
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d21;
/* rgb */ color: rgb(152, 125, 33);
/* oklch */ color: oklch(59.9% 0.111 91.6);
Tailwind
colors: {
  custom: {
    50: '#baa264',
    500: '#987d21',
    950: '#000000',
  },
}
SCSS
$custom: #987d21;
$custom-light: #baa264;
$custom-dark: #000000;
JSON
{
  "hex": "#987d21",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 46.387,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.11067,
    "h": 91.6
  },
  "luminance": 0.21452
}

Semantic roles & 50–950 ramp

primary
#987D21
secondary
#566EBF
accent
#66E740
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D21

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

Preview Lab → · Contrast checker → · Palette generator →

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