#987D26#987D26

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

Color values

HEX#987D26
RGBrgb(152, 125, 38)
HSLhsl(46, 60%, 37%)
HSVhsv(46, 75%, 60%)
CMYKcmyk(0%, 17.8%, 75%, 40.4%)
CIE-LABlab(53.48, 1.04, 48.68)
CIE-LCHlch(53.48, 48.69, 88.77°)
OKLaboklab(59.94% -0.002 0.1076)
OKLCHoklch(59.94% 0.108 91)
XYZxyz(20.6335, 21.4838, 4.8934)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D26 #264198
analogous
#984426 #987D26 #7A9826
triadic
#987D26 #26987D #7D2698
tetradic
#987D26 #269844 #264198 #98267A
square
#987D26 #269844 #264198 #98267A
split-complementary
#987D26 #267A98 #442698
monochromatic
#362C0E #67551A #987D26 #C9A532 #D7BB61

Accessibility & contrast

On white

3.96
#987D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D26#FFFFFF#000000##000000
##987D261.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987d26;
/* rgb */ color: rgb(152, 125, 38);
/* oklch */ color: oklch(59.9% 0.108 91.0);
Tailwind
colors: {
  custom: {
    50: '#baa266',
    500: '#987d26',
    950: '#000000',
  },
}
SCSS
$custom: #987d26;
$custom-light: #baa266;
$custom-dark: #000000;
JSON
{
  "hex": "#987d26",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 45.789,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59937,
    "c": 0.10761,
    "h": 91
  },
  "luminance": 0.21483
}

Semantic roles & 50–950 ramp

primary
#987D26
secondary
#5D74BD
accent
#6AE345
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D26

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

Preview Lab → · Contrast checker → · Palette generator →

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