#987F2E#987F2E

#987F2E is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.103 H 91.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#987F2E
RGBrgb(152, 127, 46)
HSLhsl(46, 54%, 39%)
HSVhsv(46, 70%, 60%)
CMYKcmyk(0%, 16.4%, 69.7%, 40.4%)
CIE-LABlab(54.08, 0.35, 45.87)
CIE-LCHlch(54.08, 45.87, 89.57°)
OKLaboklab(60.44% -0.003 0.1032)
OKLCHoklch(60.44% 0.103 91.6)
XYZxyz(21.0325, 22.0526, 5.7330)
Luminance0.2205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F2E #2E4798
analogous
#984A2E #987F2E #7C982E
triadic
#987F2E #2E987F #7F2E98
tetradic
#987F2E #2E984A #2E4798 #982E7C
square
#987F2E #2E984A #2E4798 #982E7C
split-complementary
#987F2E #2E7C98 #4A2E98
monochromatic
#3A3012 #695820 #987F2E #C5A53E #D3BB6D

Accessibility & contrast

On white

3.88
#987F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#987F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F2E
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F2E#FFFFFF#000000##000000
##987F2E1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D24
Deuteranopia (green-blind)
#938432
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f2e;
/* rgb */ color: rgb(152, 127, 46);
/* oklch */ color: oklch(60.4% 0.103 91.6);
Tailwind
colors: {
  custom: {
    50: '#baa36b',
    500: '#987f2e',
    950: '#000000',
  },
}
SCSS
$custom: #987f2e;
$custom-light: #baa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#987f2e",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 45.849,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.60436,
    "c": 0.10323,
    "h": 91.6
  },
  "luminance": 0.22051
}

Semantic roles & 50–950 ramp

primary
#987F2E
secondary
#687BBA
accent
#6DDD4B
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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