#987B1E#987B1E

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

Color values

HEX#987B1E
RGBrgb(152, 123, 30)
HSLhsl(46, 67%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 19.1%, 80.3%, 40.4%)
CIE-LABlab(52.88, 1.82, 51.17)
CIE-LCHlch(52.88, 51.21, 87.96°)
OKLaboklab(59.45% -0.0006 0.1112)
OKLCHoklch(59.45% 0.111 90.3)
XYZxyz(20.2674, 20.9364, 4.2017)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B1E #1E3B98
analogous
#983E1E #987B1E #78981E
triadic
#987B1E #1E987B #7B1E98
tetradic
#987B1E #1E983E #1E3B98 #981E78
square
#987B1E #1E983E #1E3B98 #981E78
split-complementary
#987B1E #1E7898 #3E1E98
monochromatic
#32280A #655214 #987B1E #CBA428 #DDBC53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987B1E#FFFFFF#000000##000000
##987B1E1.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)
#8A7A0A
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#A57069
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b1e;
/* rgb */ color: rgb(152, 123, 30);
/* oklch */ color: oklch(59.5% 0.111 90.3);
Tailwind
colors: {
  custom: {
    50: '#baa062',
    500: '#987b1e',
    950: '#000000',
  },
}
SCSS
$custom: #987b1e;
$custom-light: #baa062;
$custom-dark: #000000;
JSON
{
  "hex": "#987b1e",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 45.738,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.1112,
    "h": 90.3
  },
  "luminance": 0.20935
}

Semantic roles & 50–950 ramp

primary
#987B1E
secondary
#516CC0
accent
#67EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E05
muted
#817E7A

Preview Lab

Preview with #987B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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