#987C23#987C23

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

Color values

HEX#987C23
RGBrgb(152, 124, 35)
HSLhsl(46, 63%, 37%)
HSVhsv(46, 77%, 60%)
CMYKcmyk(0%, 18.4%, 77%, 40.4%)
CIE-LABlab(53.18, 1.46, 49.59)
CIE-LCHlch(53.18, 49.61, 88.31°)
OKLaboklab(59.7% -0.0011 0.1089)
OKLCHoklch(59.7% 0.109 90.6)
XYZxyz(20.4611, 21.2133, 4.6067)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C23 #233F98
analogous
#984223 #987C23 #7A9823
triadic
#987C23 #23987C #7C2398
tetradic
#987C23 #239842 #233F98 #98237A
square
#987C23 #239842 #233F98 #98237A
split-complementary
#987C23 #237A98 #422398
monochromatic
#352B0C #665318 #987C23 #CAA52E #D9BB5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987C23#FFFFFF#000000##000000
##987C231.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)
#8B7A14
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c23;
/* rgb */ color: rgb(152, 124, 35);
/* oklch */ color: oklch(59.7% 0.109 90.6);
Tailwind
colors: {
  custom: {
    50: '#baa165',
    500: '#987c23',
    950: '#000000',
  },
}
SCSS
$custom: #987c23;
$custom-light: #baa165;
$custom-dark: #000000;
JSON
{
  "hex": "#987c23",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 35
  },
  "hsl": {
    "h": 45.641,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59699,
    "c": 0.10891,
    "h": 90.6
  },
  "luminance": 0.21212
}

Semantic roles & 50–950 ramp

primary
#987C23
secondary
#5971BE
accent
#69E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C23

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

Preview Lab → · Contrast checker → · Palette generator →

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