#987F34#987F34

#987F34 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.098 H 90.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#987F34
RGBrgb(152, 127, 52)
HSLhsl(45, 49%, 40%)
HSVhsv(45, 66%, 60%)
CMYKcmyk(0%, 16.4%, 65.8%, 40.4%)
CIE-LABlab(54.14, 0.72, 43.16)
CIE-LCHlch(54.14, 43.17, 89.04°)
OKLaboklab(60.5% -0.0011 0.0985)
OKLCHoklch(60.5% 0.098 90.7)
XYZxyz(21.1591, 22.1033, 6.4000)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F34 #344D98
analogous
#984D34 #987F34 #7F9834
triadic
#987F34 #34987F #7F3498
tetradic
#987F34 #34984D #344D98 #98347F
square
#987F34 #34984D #344D98 #98347F
split-complementary
#987F34 #347F98 #4D3498
monochromatic
#3D3315 #6A5924 #987F34 #C1A349 #D0BA76

Accessibility & contrast

On white

3.87
#987F34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#987F34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F34
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F34#FFFFFF#000000##000000
##987F341.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D2C
Deuteranopia (green-blind)
#938437
Tritanopia (blue-blind)
#A4756F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f34;
/* rgb */ color: rgb(152, 127, 52);
/* oklch */ color: oklch(60.5% 0.098 90.7);
Tailwind
colors: {
  custom: {
    50: '#b9a36f',
    500: '#987f34',
    950: '#000000',
  },
}
SCSS
$custom: #987f34;
$custom-light: #b9a36f;
$custom-dark: #000000;
JSON
{
  "hex": "#987f34",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 52
  },
  "hsl": {
    "h": 45,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.60495,
    "c": 0.09846,
    "h": 90.7
  },
  "luminance": 0.22102
}

Semantic roles & 50–950 ramp

primary
#987F34
secondary
#6F82B9
accent
#72D94F
background
#FBFAF6
surface
#F7F3EC
border
#D0CDC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #987F34

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

Preview Lab → · Contrast checker → · Palette generator →

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