#987C25#987C25

#987C25 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.7% C 0.108 H 90.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#987C25
RGBrgb(152, 124, 37)
HSLhsl(45, 61%, 37%)
HSVhsv(45, 76%, 60%)
CMYKcmyk(0%, 18.4%, 75.7%, 40.4%)
CIE-LABlab(53.20, 1.56, 48.81)
CIE-LCHlch(53.20, 48.84, 88.17°)
OKLaboklab(59.71% -0.0006 0.1077)
OKLCHoklch(59.71% 0.108 90.3)
XYZxyz(20.4916, 21.2256, 4.7675)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C25 #254198
analogous
#984225 #987C25 #7B9825
triadic
#987C25 #25987C #7C2598
tetradic
#987C25 #259842 #254198 #98257B
square
#987C25 #259842 #254198 #98257B
split-complementary
#987C25 #257B98 #422598
monochromatic
#362C0D #675419 #987C25 #C9A431 #D8BB5F

Accessibility & contrast

On white

4.00
#987C25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#987C25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987C25
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987C25#FFFFFF#000000##000000
##987C251.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A17
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c25;
/* rgb */ color: rgb(152, 124, 37);
/* oklch */ color: oklch(59.7% 0.108 90.3);
Tailwind
colors: {
  custom: {
    50: '#baa166',
    500: '#987c25',
    950: '#000000',
  },
}
SCSS
$custom: #987c25;
$custom-light: #baa166;
$custom-dark: #000000;
JSON
{
  "hex": "#987c25",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 37
  },
  "hsl": {
    "h": 45.391,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.59714,
    "c": 0.10767,
    "h": 90.3
  },
  "luminance": 0.21224
}

Semantic roles & 50–950 ramp

primary
#987C25
secondary
#5C73BD
accent
#6BE444
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C25

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

Preview Lab → · Contrast checker → · Palette generator →

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