#987B23#987B23

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

Color values

HEX#987B23
RGBrgb(152, 123, 35)
HSLhsl(45, 63%, 37%)
HSVhsv(45, 77%, 60%)
CMYKcmyk(0%, 19.1%, 77%, 40.4%)
CIE-LABlab(52.91, 2.03, 49.33)
CIE-LCHlch(52.91, 49.37, 87.65°)
OKLaboklab(59.49% 0.0005 0.1084)
OKLCHoklch(59.49% 0.108 89.7)
XYZxyz(20.3364, 20.9640, 4.5651)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987B23 #234098
analogous
#984123 #987B23 #7B9823
triadic
#987B23 #23987B #7B2398
tetradic
#987B23 #239841 #234098 #98237B
square
#987B23 #239841 #234098 #98237B
split-complementary
#987B23 #237B98 #412398
monochromatic
#352A0C #665318 #987B23 #CAA32E #D9BA5C

Accessibility & contrast

On white

4.04
#987B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987B23#FFFFFF#000000##000000
##987B231.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987b23;
/* rgb */ color: rgb(152, 123, 35);
/* oklch */ color: oklch(59.5% 0.108 89.7);
Tailwind
colors: {
  custom: {
    50: '#baa065',
    500: '#987b23',
    950: '#000000',
  },
}
SCSS
$custom: #987b23;
$custom-light: #baa065;
$custom-dark: #000000;
JSON
{
  "hex": "#987b23",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 45.128,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59485,
    "c": 0.10835,
    "h": 89.7
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#987B23
secondary
#5972BE
accent
#6BE642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987B23

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

Preview Lab → · Contrast checker → · Palette generator →

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