#987F40#987F40

#987F40 is a mid, moderate orange. Relative luminance 0.222; OKLCH L 60.6% C 0.088 H 88.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#987F40
RGBrgb(152, 127, 64)
HSLhsl(43, 41%, 42%)
HSVhsv(43, 58%, 60%)
CMYKcmyk(0%, 16.4%, 57.9%, 40.4%)
CIE-LABlab(54.27, 1.62, 37.35)
CIE-LCHlch(54.27, 37.38, 87.52°)
OKLaboklab(60.64% 0.0031 0.0876)
OKLCHoklch(60.64% 0.088 88)
XYZxyz(21.4646, 22.2255, 8.0088)
Luminance0.2222 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F40 #405998
analogous
#985340 #987F40 #859840
triadic
#987F40 #40987F #7F4098
tetradic
#987F40 #409853 #405998 #984085
square
#987F40 #409853 #405998 #984085
split-complementary
#987F40 #408598 #534098
monochromatic
#42371C #6D5B2E #987F40 #BA9F5B #CCB886

Accessibility & contrast

On white

3.86
#987F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#987F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F40
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F40#FFFFFF#000000##000000
##987F401.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E3A
Deuteranopia (green-blind)
#928542
Tritanopia (blue-blind)
#A47671
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #987f40;
/* rgb */ color: rgb(152, 127, 64);
/* oklch */ color: oklch(60.6% 0.088 88.0);
Tailwind
colors: {
  custom: {
    50: '#b9a377',
    500: '#987f40',
    950: '#000000',
  },
}
SCSS
$custom: #987f40;
$custom-light: #b9a377;
$custom-dark: #000000;
JSON
{
  "hex": "#987f40",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 42.955,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.60638,
    "c": 0.08764,
    "h": 88
  },
  "luminance": 0.22224
}

Semantic roles & 50–950 ramp

primary
#987F40
secondary
#7D8DB7
accent
#7AD157
background
#FBFAF7
surface
#F6F3ED
border
#D0CDC8
text
#120F09
muted
#817F7B

Preview Lab

Preview with #987F40

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

Preview Lab → · Contrast checker → · Palette generator →

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