#987E2D#987E2D

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

Color values

HEX#987E2D
RGBrgb(152, 126, 45)
HSLhsl(45, 54%, 39%)
HSVhsv(45, 70%, 60%)
CMYKcmyk(0%, 17.1%, 70.4%, 40.4%)
CIE-LABlab(53.80, 0.85, 46.02)
CIE-LCHlch(53.80, 46.03, 88.94°)
OKLaboklab(60.21% -0.0016 0.1033)
OKLCHoklch(60.21% 0.103 90.9)
XYZxyz(20.8845, 21.7878, 5.5876)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E2D #2D4798
analogous
#98482D #987E2D #7C982D
triadic
#987E2D #2D987E #7E2D98
tetradic
#987E2D #2D9848 #2D4798 #982D7C
square
#987E2D #2D9848 #2D4798 #982D7C
split-complementary
#987E2D #2D7C98 #482D98
monochromatic
#3A3011 #69571F #987E2D #C5A43D #D3BA6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987E2D#FFFFFF#000000##000000
##987E2D1.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)
#8C7C22
Deuteranopia (green-blind)
#928431
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987e2d;
/* rgb */ color: rgb(152, 126, 45);
/* oklch */ color: oklch(60.2% 0.103 90.9);
Tailwind
colors: {
  custom: {
    50: '#baa36b',
    500: '#987e2d',
    950: '#000000',
  },
}
SCSS
$custom: #987e2d;
$custom-light: #baa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#987e2d",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 45.421,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60211,
    "c": 0.10334,
    "h": 90.9
  },
  "luminance": 0.21787
}

Semantic roles & 50–950 ramp

primary
#987E2D
secondary
#667BBA
accent
#6EDE4A
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A

Preview Lab

Preview with #987E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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