#987C22#987C22

#987C22 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.110 H 90.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#987C22
RGBrgb(152, 124, 34)
HSLhsl(46, 63%, 36%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 18.4%, 77.6%, 40.4%)
CIE-LABlab(53.18, 1.42, 49.97)
CIE-LCHlch(53.18, 49.99, 88.37°)
OKLaboklab(59.69% -0.0013 0.1095)
OKLCHoklch(59.69% 0.11 90.7)
XYZxyz(20.4465, 21.2075, 4.5296)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C22 #223E98
analogous
#984122 #987C22 #799822
triadic
#987C22 #22987C #7C2298
tetradic
#987C22 #229841 #223E98 #982279
square
#987C22 #229841 #223E98 #982279
split-complementary
#987C22 #227998 #412298
monochromatic
#342A0C #665317 #987C22 #CAA52D #DABC5A

Accessibility & contrast

On white

4.01
#987C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#987C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987C22
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987C22#FFFFFF#000000##000000
##987C221.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A12
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c22;
/* rgb */ color: rgb(152, 124, 34);
/* oklch */ color: oklch(59.7% 0.110 90.7);
Tailwind
colors: {
  custom: {
    50: '#baa164',
    500: '#987c22',
    950: '#000000',
  },
}
SCSS
$custom: #987c22;
$custom-light: #baa164;
$custom-dark: #000000;
JSON
{
  "hex": "#987c22",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 45.763,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59692,
    "c": 0.10951,
    "h": 90.7
  },
  "luminance": 0.21206
}

Semantic roles & 50–950 ramp

primary
#987C22
secondary
#5770BE
accent
#69E641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C22

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

Preview Lab → · Contrast checker → · Palette generator →

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