#987D24#987D24

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

Color values

HEX#987D24
RGBrgb(152, 125, 36)
HSLhsl(46, 62%, 37%)
HSVhsv(46, 76%, 60%)
CMYKcmyk(0%, 17.8%, 76.3%, 40.4%)
CIE-LABlab(53.46, 0.95, 49.46)
CIE-LCHlch(53.46, 49.47, 88.90°)
OKLaboklab(59.92% -0.0025 0.1089)
OKLCHoklch(59.92% 0.109 91.3)
XYZxyz(20.6021, 21.4713, 4.7280)
Luminance0.2147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D24 #243F98
analogous
#984324 #987D24 #799824
triadic
#987D24 #24987D #7D2498
tetradic
#987D24 #249843 #243F98 #982479
square
#987D24 #249843 #243F98 #982479
split-complementary
#987D24 #247998 #432498
monochromatic
#352C0D #675418 #987D24 #C9A630 #D9BC5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D24#FFFFFF#000000##000000
##987D241.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)
#8B7B15
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d24;
/* rgb */ color: rgb(152, 125, 36);
/* oklch */ color: oklch(59.9% 0.109 91.3);
Tailwind
colors: {
  custom: {
    50: '#baa265',
    500: '#987d24',
    950: '#000000',
  },
}
SCSS
$custom: #987d24;
$custom-light: #baa265;
$custom-dark: #000000;
JSON
{
  "hex": "#987d24",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 46.034,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.10888,
    "h": 91.3
  },
  "luminance": 0.2147
}

Semantic roles & 50–950 ramp

primary
#987D24
secondary
#5A71BE
accent
#69E543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D24

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

Preview Lab → · Contrast checker → · Palette generator →

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