#987B22#987B22

#987B22 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.109 H 89.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#987B22
RGBrgb(152, 123, 34)
HSLhsl(45, 63%, 36%)
HSVhsv(45, 78%, 60%)
CMYKcmyk(0%, 19.1%, 77.6%, 40.4%)
CIE-LABlab(52.90, 1.98, 49.71)
CIE-LCHlch(52.90, 49.75, 87.72°)
OKLaboklab(59.48% 0.0003 0.109)
OKLCHoklch(59.48% 0.109 89.9)
XYZxyz(20.3218, 20.9581, 4.4880)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B22 #223F98
analogous
#984022 #987B22 #7A9822
triadic
#987B22 #22987B #7B2298
tetradic
#987B22 #229840 #223F98 #98227A
square
#987B22 #229840 #223F98 #98227A
split-complementary
#987B22 #227A98 #402298
monochromatic
#342A0C #665317 #987B22 #CAA32D #DABB5A

Accessibility & contrast

On white

4.05
#987B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#987B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987B22
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987B22#FFFFFF#000000##000000
##987B221.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A12
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b22;
/* rgb */ color: rgb(152, 123, 34);
/* oklch */ color: oklch(59.5% 0.109 89.9);
Tailwind
colors: {
  custom: {
    50: '#baa064',
    500: '#987b22',
    950: '#000000',
  },
}
SCSS
$custom: #987b22;
$custom-light: #baa064;
$custom-dark: #000000;
JSON
{
  "hex": "#987b22",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 45.254,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59478,
    "c": 0.10895,
    "h": 89.9
  },
  "luminance": 0.20957
}

Semantic roles & 50–950 ramp

primary
#987B22
secondary
#5771BE
accent
#6AE641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987B22

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

Preview Lab → · Contrast checker → · Palette generator →

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