#987B20#987B20

#987B20 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.5% C 0.110 H 90.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#987B20
RGBrgb(152, 123, 32)
HSLhsl(46, 65%, 36%)
HSVhsv(46, 79%, 60%)
CMYKcmyk(0%, 19.1%, 78.9%, 40.4%)
CIE-LABlab(52.89, 1.90, 50.46)
CIE-LCHlch(52.89, 50.49, 87.84°)
OKLaboklab(59.46% -0.0002 0.1101)
OKLCHoklch(59.46% 0.11 90.1)
XYZxyz(20.2938, 20.9469, 4.3405)
Luminance0.2095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B20 #203D98
analogous
#983F20 #987B20 #799820
triadic
#987B20 #20987B #7B2098
tetradic
#987B20 #20983F #203D98 #982079
square
#987B20 #20983F #203D98 #982079
split-complementary
#987B20 #207998 #3F2098
monochromatic
#33290B #655215 #987B20 #CBA42B #DCBC57

Accessibility & contrast

On white

4.05
#987B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#987B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987B20
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987B20#FFFFFF#000000##000000
##987B201.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0E
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#A5706A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #987b20;
/* rgb */ color: rgb(152, 123, 32);
/* oklch */ color: oklch(59.5% 0.110 90.1);
Tailwind
colors: {
  custom: {
    50: '#baa063',
    500: '#987b20',
    950: '#000000',
  },
}
SCSS
$custom: #987b20;
$custom-light: #baa063;
$custom-dark: #000000;
JSON
{
  "hex": "#987b20",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 45.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59464,
    "c": 0.11011,
    "h": 90.1
  },
  "luminance": 0.20946
}

Semantic roles & 50–950 ramp

primary
#987B20
secondary
#546EBF
accent
#68E840
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987B20

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

Preview Lab → · Contrast checker → · Palette generator →

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