#987E1F#987E1F

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

Color values

HEX#987E1F
RGBrgb(152, 126, 31)
HSLhsl(47, 66%, 36%)
HSVhsv(47, 80%, 60%)
CMYKcmyk(0%, 17.1%, 79.6%, 40.4%)
CIE-LABlab(53.70, 0.17, 51.57)
CIE-LCHlch(53.70, 51.57, 89.81°)
OKLaboklab(60.1% -0.0052 0.1123)
OKLCHoklch(60.1% 0.112 92.7)
XYZxyz(20.6583, 21.6973, 4.3960)
Luminance0.2170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E1F #1F3998
analogous
#98411F #987E1F #75981F
triadic
#987E1F #1F987E #7E1F98
tetradic
#987E1F #1F9841 #1F3998 #981F75
square
#987E1F #1F9841 #1F3998 #981F75
split-complementary
#987E1F #1F7598 #411F98
monochromatic
#322A0A #655415 #987E1F #CBA829 #DCBF55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987E1F#FFFFFF#000000##000000
##987E1F1.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)
#8D7C0A
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e1f;
/* rgb */ color: rgb(152, 126, 31);
/* oklch */ color: oklch(60.1% 0.112 92.7);
Tailwind
colors: {
  custom: {
    50: '#baa363',
    500: '#987e1f',
    950: '#000000',
  },
}
SCSS
$custom: #987e1f;
$custom-light: #baa363;
$custom-dark: #000000;
JSON
{
  "hex": "#987e1f",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 47.107,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60104,
    "c": 0.11239,
    "h": 92.7
  },
  "luminance": 0.21696
}

Semantic roles & 50–950 ramp

primary
#987E1F
secondary
#536AC0
accent
#63E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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