#987D23#987D23

#987D23 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.9% C 0.109 H 91.4°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#987D23
RGBrgb(152, 125, 35)
HSLhsl(46, 63%, 37%)
HSVhsv(46, 77%, 60%)
CMYKcmyk(0%, 17.8%, 77%, 40.4%)
CIE-LABlab(53.45, 0.90, 49.85)
CIE-LCHlch(53.45, 49.86, 88.96°)
OKLaboklab(59.91% -0.0027 0.1095)
OKLCHoklch(59.91% 0.109 91.4)
XYZxyz(20.5871, 21.4652, 4.6486)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D23 #233E98
analogous
#984323 #987D23 #799823
triadic
#987D23 #23987D #7D2398
tetradic
#987D23 #239843 #233E98 #982379
square
#987D23 #239843 #233E98 #982379
split-complementary
#987D23 #237998 #432398
monochromatic
#352B0C #665418 #987D23 #CAA62E #D9BC5C

Accessibility & contrast

On white

3.97
#987D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#987D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D23
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D23#FFFFFF#000000##000000
##987D231.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B13
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#A5726B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d23;
/* rgb */ color: rgb(152, 125, 35);
/* oklch */ color: oklch(59.9% 0.109 91.4);
Tailwind
colors: {
  custom: {
    50: '#baa265',
    500: '#987d23',
    950: '#000000',
  },
}
SCSS
$custom: #987d23;
$custom-light: #baa265;
$custom-dark: #000000;
JSON
{
  "hex": "#987d23",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 46.154,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59914,
    "c": 0.10948,
    "h": 91.4
  },
  "luminance": 0.21464
}

Semantic roles & 50–950 ramp

primary
#987D23
secondary
#5970BE
accent
#68E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D23

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

Preview Lab → · Contrast checker → · Palette generator →

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