#987C20#987C20

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

Color values

HEX#987C20
RGBrgb(152, 124, 32)
HSLhsl(46, 65%, 36%)
HSVhsv(46, 79%, 60%)
CMYKcmyk(0%, 18.4%, 78.9%, 40.4%)
CIE-LABlab(53.16, 1.34, 50.71)
CIE-LCHlch(53.16, 50.73, 88.49°)
OKLaboklab(59.68% -0.0018 0.1107)
OKLCHoklch(59.68% 0.111 90.9)
XYZxyz(20.4185, 21.1963, 4.3821)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C20 #203C98
analogous
#984020 #987C20 #789820
triadic
#987C20 #20987C #7C2098
tetradic
#987C20 #209840 #203C98 #982078
square
#987C20 #209840 #203C98 #982078
split-complementary
#987C20 #207898 #402098
monochromatic
#332A0B #655315 #987C20 #CBA52B #DCBD57

Accessibility & contrast

On white

4.01
#987C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987C20#FFFFFF#000000##000000
##987C201.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0E
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#A5716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c20;
/* rgb */ color: rgb(152, 124, 32);
/* oklch */ color: oklch(59.7% 0.111 90.9);
Tailwind
colors: {
  custom: {
    50: '#baa163',
    500: '#987c20',
    950: '#000000',
  },
}
SCSS
$custom: #987c20;
$custom-light: #baa163;
$custom-dark: #000000;
JSON
{
  "hex": "#987c20",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 46,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59679,
    "c": 0.11066,
    "h": 90.9
  },
  "luminance": 0.21195
}

Semantic roles & 50–950 ramp

primary
#987C20
secondary
#546DBF
accent
#67E840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C20

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

Preview Lab → · Contrast checker → · Palette generator →

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