#987F2D#987F2D

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

Color values

HEX#987F2D
RGBrgb(152, 127, 45)
HSLhsl(46, 54%, 39%)
HSVhsv(46, 70%, 60%)
CMYKcmyk(0%, 16.4%, 70.4%, 40.4%)
CIE-LABlab(54.07, 0.29, 46.31)
CIE-LCHlch(54.07, 46.31, 89.64°)
OKLaboklab(60.43% -0.0033 0.1039)
OKLCHoklch(60.43% 0.104 91.8)
XYZxyz(21.0130, 22.0448, 5.6304)
Luminance0.2204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F2D #2D4698
analogous
#98492D #987F2D #7B982D
triadic
#987F2D #2D987F #7F2D98
tetradic
#987F2D #2D9849 #2D4698 #982D7B
square
#987F2D #2D9849 #2D4698 #982D7B
split-complementary
#987F2D #2D7B98 #492D98
monochromatic
#3A3011 #69581F #987F2D #C5A63D #D3BB6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F2D#FFFFFF#000000##000000
##987F2D1.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)
#8D7D22
Deuteranopia (green-blind)
#938431
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f2d;
/* rgb */ color: rgb(152, 127, 45);
/* oklch */ color: oklch(60.4% 0.104 91.8);
Tailwind
colors: {
  custom: {
    50: '#baa36b',
    500: '#987f2d',
    950: '#000000',
  },
}
SCSS
$custom: #987f2d;
$custom-light: #baa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#987f2d",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 45.981,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60427,
    "c": 0.10398,
    "h": 91.8
  },
  "luminance": 0.22044
}

Semantic roles & 50–950 ramp

primary
#987F2D
secondary
#667ABA
accent
#6DDE4A
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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