#987F22#987F22

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

Color values

HEX#987F22
RGBrgb(152, 127, 34)
HSLhsl(47, 63%, 36%)
HSVhsv(47, 78%, 60%)
CMYKcmyk(0%, 16.4%, 77.6%, 40.4%)
CIE-LABlab(54.00, -0.26, 50.74)
CIE-LCHlch(54.00, 50.74, 90.30°)
OKLaboklab(60.34% -0.0061 0.1111)
OKLCHoklch(60.34% 0.111 93.2)
XYZxyz(20.8282, 21.9709, 4.6568)
Luminance0.2197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F22 #223B98
analogous
#984422 #987F22 #769822
triadic
#987F22 #22987F #7F2298
tetradic
#987F22 #229844 #223B98 #982276
square
#987F22 #229844 #223B98 #982276
split-complementary
#987F22 #227698 #442298
monochromatic
#342B0C #665517 #987F22 #CAA92D #DABF5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F22#FFFFFF#000000##000000
##987F221.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)
#8D7D11
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f22;
/* rgb */ color: rgb(152, 127, 34);
/* oklch */ color: oklch(60.3% 0.111 93.2);
Tailwind
colors: {
  custom: {
    50: '#baa365',
    500: '#987f22',
    950: '#000000',
  },
}
SCSS
$custom: #987f22;
$custom-light: #baa365;
$custom-dark: #000000;
JSON
{
  "hex": "#987f22",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 47.288,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.6034,
    "c": 0.11131,
    "h": 93.2
  },
  "luminance": 0.2197
}

Semantic roles & 50–950 ramp

primary
#987F22
secondary
#576DBE
accent
#64E641
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F22

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

Preview Lab → · Contrast checker → · Palette generator →

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