#987D22#987D22

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

Color values

HEX#987D22
RGBrgb(152, 125, 34)
HSLhsl(46, 63%, 36%)
HSVhsv(46, 78%, 60%)
CMYKcmyk(0%, 17.8%, 77.6%, 40.4%)
CIE-LABlab(53.45, 0.86, 50.23)
CIE-LCHlch(53.45, 50.23, 89.02°)
OKLaboklab(59.91% -0.0029 0.1101)
OKLCHoklch(59.91% 0.11 91.5)
XYZxyz(20.5724, 21.4594, 4.5716)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D22 #223D98
analogous
#984222 #987D22 #789822
triadic
#987D22 #22987D #7D2298
tetradic
#987D22 #229842 #223D98 #982278
square
#987D22 #229842 #223D98 #982278
split-complementary
#987D22 #227898 #422298
monochromatic
#342B0C #665417 #987D22 #CAA62D #DABD5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D22#FFFFFF#000000##000000
##987D221.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)
#8C7B11
Deuteranopia (green-blind)
#928327
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d22;
/* rgb */ color: rgb(152, 125, 34);
/* oklch */ color: oklch(59.9% 0.110 91.5);
Tailwind
colors: {
  custom: {
    50: '#baa264',
    500: '#987d22',
    950: '#000000',
  },
}
SCSS
$custom: #987d22;
$custom-light: #baa264;
$custom-dark: #000000;
JSON
{
  "hex": "#987d22",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 46.271,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59907,
    "c": 0.11009,
    "h": 91.5
  },
  "luminance": 0.21458
}

Semantic roles & 50–950 ramp

primary
#987D22
secondary
#576FBE
accent
#67E641
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D22

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

Preview Lab → · Contrast checker → · Palette generator →

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