#987E25#987E25

#987E25 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.109 H 92.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#987E25
RGBrgb(152, 126, 37)
HSLhsl(46, 61%, 37%)
HSVhsv(46, 76%, 60%)
CMYKcmyk(0%, 17.1%, 75.7%, 40.4%)
CIE-LABlab(53.74, 0.43, 49.34)
CIE-LCHlch(53.74, 49.34, 89.50°)
OKLaboklab(60.15% -0.0038 0.1088)
OKLCHoklch(60.15% 0.109 92)
XYZxyz(20.7448, 21.7319, 4.8519)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E25 #253F98
analogous
#984525 #987E25 #799825
triadic
#987E25 #25987E #7E2598
tetradic
#987E25 #259845 #253F98 #982579
square
#987E25 #259845 #253F98 #982579
split-complementary
#987E25 #257998 #452598
monochromatic
#362C0D #675519 #987E25 #C9A731 #D8BD5F

Accessibility & contrast

On white

3.93
#987E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#987E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E25
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E25#FFFFFF#000000##000000
##987E251.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C16
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e25;
/* rgb */ color: rgb(152, 126, 37);
/* oklch */ color: oklch(60.1% 0.109 92.0);
Tailwind
colors: {
  custom: {
    50: '#baa366',
    500: '#987e25',
    950: '#000000',
  },
}
SCSS
$custom: #987e25;
$custom-light: #baa366;
$custom-dark: #000000;
JSON
{
  "hex": "#987e25",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 37
  },
  "hsl": {
    "h": 46.435,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60145,
    "c": 0.10886,
    "h": 92
  },
  "luminance": 0.21731
}

Semantic roles & 50–950 ramp

primary
#987E25
secondary
#5C72BD
accent
#68E444
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E25

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

Preview Lab → · Contrast checker → · Palette generator →

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