#987C26#987C26

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

Color values

HEX#987C26
RGBrgb(152, 124, 38)
HSLhsl(45, 60%, 37%)
HSVhsv(45, 75%, 60%)
CMYKcmyk(0%, 18.4%, 75%, 40.4%)
CIE-LABlab(53.20, 1.60, 48.41)
CIE-LCHlch(53.20, 48.44, 88.10°)
OKLaboklab(59.72% -0.0003 0.107)
OKLCHoklch(59.72% 0.107 90.2)
XYZxyz(20.5076, 21.2319, 4.8514)
Luminance0.2123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C26 #264298
analogous
#984326 #987C26 #7B9826
triadic
#987C26 #26987C #7C2698
tetradic
#987C26 #269843 #264298 #98267B
square
#987C26 #269843 #264298 #98267B
split-complementary
#987C26 #267B98 #432698
monochromatic
#362C0E #67541A #987C26 #C9A432 #D7BA61

Accessibility & contrast

On white

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

On black

5.25
#987C26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987C26
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987C26#FFFFFF#000000##000000
##987C261.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987c26;
/* rgb */ color: rgb(152, 124, 38);
/* oklch */ color: oklch(59.7% 0.107 90.2);
Tailwind
colors: {
  custom: {
    50: '#baa166',
    500: '#987c26',
    950: '#000000',
  },
}
SCSS
$custom: #987c26;
$custom-light: #baa166;
$custom-dark: #000000;
JSON
{
  "hex": "#987c26",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 38
  },
  "hsl": {
    "h": 45.263,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59722,
    "c": 0.10703,
    "h": 90.2
  },
  "luminance": 0.21231
}

Semantic roles & 50–950 ramp

primary
#987C26
secondary
#5D75BD
accent
#6CE345
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C26

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

Preview Lab → · Contrast checker → · Palette generator →

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