#987B24#987B24

#987B24 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.5% C 0.108 H 89.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#987B24
RGBrgb(152, 123, 36)
HSLhsl(45, 62%, 37%)
HSVhsv(45, 76%, 60%)
CMYKcmyk(0%, 19.1%, 76.3%, 40.4%)
CIE-LABlab(52.92, 2.07, 48.94)
CIE-LCHlch(52.92, 48.99, 87.57°)
OKLaboklab(59.49% 0.0008 0.1077)
OKLCHoklch(59.49% 0.108 89.6)
XYZxyz(20.3515, 20.9700, 4.6444)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B24 #244198
analogous
#984124 #987B24 #7B9824
triadic
#987B24 #24987B #7B2498
tetradic
#987B24 #249841 #244198 #98247B
square
#987B24 #249841 #244198 #98247B
split-complementary
#987B24 #247B98 #412498
monochromatic
#352B0D #675318 #987B24 #C9A330 #D9BA5E

Accessibility & contrast

On white

4.04
#987B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#987B24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987B24
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987B24#FFFFFF#000000##000000
##987B241.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A16
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b24;
/* rgb */ color: rgb(152, 123, 36);
/* oklch */ color: oklch(59.5% 0.108 89.6);
Tailwind
colors: {
  custom: {
    50: '#baa065',
    500: '#987b24',
    950: '#000000',
  },
}
SCSS
$custom: #987b24;
$custom-light: #baa065;
$custom-dark: #000000;
JSON
{
  "hex": "#987b24",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 36
  },
  "hsl": {
    "h": 45,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59492,
    "c": 0.10774,
    "h": 89.6
  },
  "luminance": 0.20969
}

Semantic roles & 50–950 ramp

primary
#987B24
secondary
#5A73BE
accent
#6BE543
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987B24

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

Preview Lab → · Contrast checker → · Palette generator →

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