#987D25#987D25

#987D25 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.9% C 0.108 H 91.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#987D25
RGBrgb(152, 125, 37)
HSLhsl(46, 61%, 37%)
HSVhsv(46, 76%, 60%)
CMYKcmyk(0%, 17.8%, 75.7%, 40.4%)
CIE-LABlab(53.47, 0.99, 49.07)
CIE-LCHlch(53.47, 49.08, 88.84°)
OKLaboklab(59.93% -0.0022 0.1082)
OKLCHoklch(59.93% 0.108 91.2)
XYZxyz(20.6176, 21.4775, 4.8095)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D25 #254098
analogous
#984425 #987D25 #7A9825
triadic
#987D25 #25987D #7D2598
tetradic
#987D25 #259844 #254098 #98257A
square
#987D25 #259844 #254098 #98257A
split-complementary
#987D25 #257A98 #442598
monochromatic
#362C0D #675519 #987D25 #C9A531 #D8BC5F

Accessibility & contrast

On white

3.97
#987D25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#987D25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D25
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D25#FFFFFF#000000##000000
##987D251.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B17
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d25;
/* rgb */ color: rgb(152, 125, 37);
/* oklch */ color: oklch(59.9% 0.108 91.2);
Tailwind
colors: {
  custom: {
    50: '#baa266',
    500: '#987d25',
    950: '#000000',
  },
}
SCSS
$custom: #987d25;
$custom-light: #baa266;
$custom-dark: #000000;
JSON
{
  "hex": "#987d25",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 45.913,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.59929,
    "c": 0.10825,
    "h": 91.2
  },
  "luminance": 0.21476
}

Semantic roles & 50–950 ramp

primary
#987D25
secondary
#5C73BD
accent
#69E444
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D25

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

Preview Lab → · Contrast checker → · Palette generator →

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