#987F25#987F25

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

Color values

HEX#987F25
RGBrgb(152, 127, 37)
HSLhsl(47, 61%, 37%)
HSVhsv(47, 76%, 60%)
CMYKcmyk(0%, 16.4%, 75.7%, 40.4%)
CIE-LABlab(54.02, -0.13, 49.60)
CIE-LCHlch(54.02, 49.60, 90.15°)
OKLaboklab(60.36% -0.0054 0.1094)
OKLCHoklch(60.36% 0.109 92.8)
XYZxyz(20.8733, 21.9889, 4.8948)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F25 #253E98
analogous
#984625 #987F25 #779825
triadic
#987F25 #25987F #7F2598
tetradic
#987F25 #259846 #253E98 #982577
square
#987F25 #259846 #253E98 #982577
split-complementary
#987F25 #257798 #462598
monochromatic
#362D0D #675619 #987F25 #C9A831 #D8BE5F

Accessibility & contrast

On white

3.89
#987F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#987F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F25
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F25#FFFFFF#000000##000000
##987F251.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D16
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f25;
/* rgb */ color: rgb(152, 127, 37);
/* oklch */ color: oklch(60.4% 0.109 92.8);
Tailwind
colors: {
  custom: {
    50: '#baa366',
    500: '#987f25',
    950: '#000000',
  },
}
SCSS
$custom: #987f25;
$custom-light: #baa366;
$custom-dark: #000000;
JSON
{
  "hex": "#987f25",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 46.957,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60361,
    "c": 0.10948,
    "h": 92.8
  },
  "luminance": 0.21988
}

Semantic roles & 50–950 ramp

primary
#987F25
secondary
#5C71BD
accent
#67E444
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F25

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

Preview Lab → · Contrast checker → · Palette generator →

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