#987B1C#987B1C

#987B1C is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.4% C 0.112 H 90.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#987B1C
RGBrgb(152, 123, 28)
HSLhsl(46, 69%, 35%)
HSVhsv(46, 82%, 60%)
CMYKcmyk(0%, 19.1%, 81.6%, 40.4%)
CIE-LABlab(52.87, 1.74, 51.86)
CIE-LCHlch(52.87, 51.89, 88.07°)
OKLaboklab(59.44% -0.001 0.1122)
OKLCHoklch(59.44% 0.112 90.5)
XYZxyz(20.2427, 20.9265, 4.0714)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B1C #1C3998
analogous
#983D1C #987B1C #77981C
triadic
#987B1C #1C987B #7B1C98
tetradic
#987B1C #1C983D #1C3998 #981C77
square
#987B1C #1C983D #1C3998 #981C77
split-complementary
#987B1C #1C7798 #3D1C98
monochromatic
#312709 #645112 #987B1C #CCA526 #DFBD50

Accessibility & contrast

On white

4.05
#987B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987B1C#FFFFFF#000000##000000
##987B1C1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7905
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#A57069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b1c;
/* rgb */ color: rgb(152, 123, 28);
/* oklch */ color: oklch(59.4% 0.112 90.5);
Tailwind
colors: {
  custom: {
    50: '#bba061',
    500: '#987b1c',
    950: '#000000',
  },
}
SCSS
$custom: #987b1c;
$custom-light: #bba061;
$custom-dark: #000000;
JSON
{
  "hex": "#987b1c",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 45.968,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59439,
    "c": 0.11224,
    "h": 90.5
  },
  "luminance": 0.20925
}

Semantic roles & 50–950 ramp

primary
#987B1C
secondary
#4E69C1
accent
#65EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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