#987E22#987E22

#987E22 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.111 H 92.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#987E22
RGBrgb(152, 126, 34)
HSLhsl(47, 63%, 36%)
HSVhsv(47, 78%, 60%)
CMYKcmyk(0%, 17.1%, 77.6%, 40.4%)
CIE-LABlab(53.72, 0.30, 50.48)
CIE-LCHlch(53.72, 50.48, 89.66°)
OKLaboklab(60.12% -0.0045 0.1106)
OKLCHoklch(60.12% 0.111 92.4)
XYZxyz(20.6997, 21.7139, 4.6140)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E22 #223C98
analogous
#984322 #987E22 #779822
triadic
#987E22 #22987E #7E2298
tetradic
#987E22 #229843 #223C98 #982277
square
#987E22 #229843 #223C98 #982277
split-complementary
#987E22 #227798 #432298
monochromatic
#342B0C #665517 #987E22 #CAA72D #DABE5A

Accessibility & contrast

On white

3.93
#987E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#987E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E22
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E22#FFFFFF#000000##000000
##987E221.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C11
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e22;
/* rgb */ color: rgb(152, 126, 34);
/* oklch */ color: oklch(60.1% 0.111 92.4);
Tailwind
colors: {
  custom: {
    50: '#baa365',
    500: '#987e22',
    950: '#000000',
  },
}
SCSS
$custom: #987e22;
$custom-light: #baa365;
$custom-dark: #000000;
JSON
{
  "hex": "#987e22",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 46.78,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60123,
    "c": 0.11068,
    "h": 92.4
  },
  "luminance": 0.21713
}

Semantic roles & 50–950 ramp

primary
#987E22
secondary
#576EBE
accent
#66E641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E22

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

Preview Lab → · Contrast checker → · Palette generator →

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