#987F24#987F24

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

Color values

HEX#987F24
RGBrgb(152, 127, 36)
HSLhsl(47, 62%, 37%)
HSVhsv(47, 76%, 60%)
CMYKcmyk(0%, 16.4%, 76.3%, 40.4%)
CIE-LABlab(54.01, -0.17, 49.99)
CIE-LCHlch(54.01, 49.99, 90.20°)
OKLaboklab(60.35% -0.0057 0.11)
OKLCHoklch(60.35% 0.11 92.9)
XYZxyz(20.8579, 21.9827, 4.8132)
Luminance0.2198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F24 #243D98
analogous
#984524 #987F24 #779824
triadic
#987F24 #24987F #7F2498
tetradic
#987F24 #249845 #243D98 #982477
square
#987F24 #249845 #243D98 #982477
split-complementary
#987F24 #247798 #452498
monochromatic
#352C0D #675618 #987F24 #C9A830 #D9BE5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F24#FFFFFF#000000##000000
##987F241.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)
#8D7D14
Deuteranopia (green-blind)
#948429
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f24;
/* rgb */ color: rgb(152, 127, 36);
/* oklch */ color: oklch(60.4% 0.110 92.9);
Tailwind
colors: {
  custom: {
    50: '#baa366',
    500: '#987f24',
    950: '#000000',
  },
}
SCSS
$custom: #987f24;
$custom-light: #baa366;
$custom-dark: #000000;
JSON
{
  "hex": "#987f24",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 36
  },
  "hsl": {
    "h": 47.069,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60354,
    "c": 0.11011,
    "h": 92.9
  },
  "luminance": 0.21982
}

Semantic roles & 50–950 ramp

primary
#987F24
secondary
#5A70BE
accent
#66E543
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F24

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

Preview Lab → · Contrast checker → · Palette generator →

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