#987D40#987D40

#987D40 is a mid, moderate orange. Relative luminance 0.217; OKLCH L 60.2% C 0.086 H 85.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#987D40
RGBrgb(152, 125, 64)
HSLhsl(42, 41%, 42%)
HSVhsv(42, 58%, 60%)
CMYKcmyk(0%, 17.8%, 57.9%, 40.4%)
CIE-LABlab(53.72, 2.74, 36.71)
CIE-LCHlch(53.72, 36.81, 85.73°)
OKLaboklab(60.21% 0.0063 0.0862)
OKLCHoklch(60.21% 0.086 85.8)
XYZxyz(21.2089, 21.7140, 7.9236)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D40 #405B98
analogous
#985140 #987D40 #879840
triadic
#987D40 #40987D #7D4098
tetradic
#987D40 #409851 #405B98 #984087
square
#987D40 #409851 #405B98 #984087
split-complementary
#987D40 #408798 #514098
monochromatic
#42361C #6D5A2E #987D40 #BA9D5B #CCB786

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D40#FFFFFF#000000##000000
##987D401.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)
#8A7C3A
Deuteranopia (green-blind)
#908342
Tritanopia (blue-blind)
#A4746F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d40;
/* rgb */ color: rgb(152, 125, 64);
/* oklch */ color: oklch(60.2% 0.086 85.8);
Tailwind
colors: {
  custom: {
    50: '#b9a277',
    500: '#987d40',
    950: '#000000',
  },
}
SCSS
$custom: #987d40;
$custom-light: #b9a277;
$custom-dark: #000000;
JSON
{
  "hex": "#987d40",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 41.591,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.60211,
    "c": 0.08643,
    "h": 85.8
  },
  "luminance": 0.21713
}

Semantic roles & 50–950 ramp

primary
#987D40
secondary
#7D8FB7
accent
#7CD157
background
#FBF9F7
surface
#F6F2ED
border
#D0CCC8
text
#120F09
muted
#817E7B

Preview Lab

Preview with #987D40

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

Preview Lab → · Contrast checker → · Palette generator →

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