#987E2F#987E2F

#987E2F is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.102 H 90.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#987E2F
RGBrgb(152, 126, 47)
HSLhsl(45, 53%, 39%)
HSVhsv(45, 69%, 60%)
CMYKcmyk(0%, 17.1%, 69.1%, 40.4%)
CIE-LABlab(53.82, 0.97, 45.14)
CIE-LCHlch(53.82, 45.15, 88.77°)
OKLaboklab(60.23% -0.0011 0.1018)
OKLCHoklch(60.23% 0.102 90.6)
XYZxyz(20.9239, 21.8036, 5.7952)
Luminance0.2180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E2F #2F4998
analogous
#984A2F #987E2F #7E982F
triadic
#987E2F #2F987E #7E2F98
tetradic
#987E2F #2F984A #2F4998 #982F7E
square
#987E2F #2F984A #2F4998 #982F7E
split-complementary
#987E2F #2F7E98 #4A2F98
monochromatic
#3B3112 #695721 #987E2F #C4A340 #D2BA6F

Accessibility & contrast

On white

3.92
#987E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#987E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E2F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E2F#FFFFFF#000000##000000
##987E2F1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C25
Deuteranopia (green-blind)
#928433
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987e2f;
/* rgb */ color: rgb(152, 126, 47);
/* oklch */ color: oklch(60.2% 0.102 90.6);
Tailwind
colors: {
  custom: {
    50: '#baa36c',
    500: '#987e2f',
    950: '#000000',
  },
}
SCSS
$custom: #987e2f;
$custom-light: #baa36c;
$custom-dark: #000000;
JSON
{
  "hex": "#987e2f",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 45.143,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.60229,
    "c": 0.10183,
    "h": 90.6
  },
  "luminance": 0.21802
}

Semantic roles & 50–950 ramp

primary
#987E2F
secondary
#697DBA
accent
#6FDC4C
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A

Preview Lab

Preview with #987E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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