#987C24#987C24

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

Color values

HEX#987C24
RGBrgb(152, 124, 36)
HSLhsl(46, 62%, 37%)
HSVhsv(46, 76%, 60%)
CMYKcmyk(0%, 18.4%, 76.3%, 40.4%)
CIE-LABlab(53.19, 1.51, 49.20)
CIE-LCHlch(53.19, 49.23, 88.24°)
OKLaboklab(59.71% -0.0008 0.1083)
OKLCHoklch(59.71% 0.108 90.4)
XYZxyz(20.4762, 21.2194, 4.6860)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C24 #244098
analogous
#984224 #987C24 #7A9824
triadic
#987C24 #24987C #7C2498
tetradic
#987C24 #249842 #244098 #98247A
square
#987C24 #249842 #244098 #98247A
split-complementary
#987C24 #247A98 #422498
monochromatic
#352B0D #675418 #987C24 #C9A430 #D9BB5E

Accessibility & contrast

On white

4.00
#987C24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987C24#FFFFFF#000000##000000
##987C241.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987c24;
/* rgb */ color: rgb(152, 124, 36);
/* oklch */ color: oklch(59.7% 0.108 90.4);
Tailwind
colors: {
  custom: {
    50: '#baa165',
    500: '#987c24',
    950: '#000000',
  },
}
SCSS
$custom: #987c24;
$custom-light: #baa165;
$custom-dark: #000000;
JSON
{
  "hex": "#987c24",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 36
  },
  "hsl": {
    "h": 45.517,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59706,
    "c": 0.10829,
    "h": 90.4
  },
  "luminance": 0.21218
}

Semantic roles & 50–950 ramp

primary
#987C24
secondary
#5A72BE
accent
#6AE543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C24

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

Preview Lab → · Contrast checker → · Palette generator →

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