#987E24#987E24

#987E24 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.109 H 92.1°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#987E24
RGBrgb(152, 126, 36)
HSLhsl(47, 62%, 37%)
HSVhsv(47, 76%, 60%)
CMYKcmyk(0%, 17.1%, 76.3%, 40.4%)
CIE-LABlab(53.73, 0.39, 49.73)
CIE-LCHlch(53.73, 49.73, 89.56°)
OKLaboklab(60.14% -0.0041 0.1094)
OKLCHoklch(60.14% 0.109 92.1)
XYZxyz(20.7293, 21.7257, 4.7704)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E24 #243E98
analogous
#984424 #987E24 #789824
triadic
#987E24 #24987E #7E2498
tetradic
#987E24 #249844 #243E98 #982478
square
#987E24 #249844 #243E98 #982478
split-complementary
#987E24 #247898 #442498
monochromatic
#352C0D #675518 #987E24 #C9A730 #D9BD5E

Accessibility & contrast

On white

3.93
#987E24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#987E24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E24
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E24#FFFFFF#000000##000000
##987E241.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C15
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e24;
/* rgb */ color: rgb(152, 126, 36);
/* oklch */ color: oklch(60.1% 0.109 92.1);
Tailwind
colors: {
  custom: {
    50: '#baa366',
    500: '#987e24',
    950: '#000000',
  },
}
SCSS
$custom: #987e24;
$custom-light: #baa366;
$custom-dark: #000000;
JSON
{
  "hex": "#987e24",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 36
  },
  "hsl": {
    "h": 46.552,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60137,
    "c": 0.10948,
    "h": 92.1
  },
  "luminance": 0.21724
}

Semantic roles & 50–950 ramp

primary
#987E24
secondary
#5A70BE
accent
#67E543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E24

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

Preview Lab → · Contrast checker → · Palette generator →

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