#987E23#987E23

#987E23 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.1% C 0.110 H 92.2°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#987E23
RGBrgb(152, 126, 35)
HSLhsl(47, 63%, 37%)
HSVhsv(47, 77%, 60%)
CMYKcmyk(0%, 17.1%, 77%, 40.4%)
CIE-LABlab(53.73, 0.34, 50.11)
CIE-LCHlch(53.73, 50.11, 89.61°)
OKLaboklab(60.13% -0.0043 0.11)
OKLCHoklch(60.13% 0.11 92.2)
XYZxyz(20.7143, 21.7197, 4.6911)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E23 #233D98
analogous
#984423 #987E23 #789823
triadic
#987E23 #23987E #7E2398
tetradic
#987E23 #239844 #233D98 #982378
square
#987E23 #239844 #233D98 #982378
split-complementary
#987E23 #237898 #442398
monochromatic
#352C0C #665518 #987E23 #CAA72E #D9BE5C

Accessibility & contrast

On white

3.93
#987E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#987E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E23
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E23#FFFFFF#000000##000000
##987E231.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C13
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#A5736C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e23;
/* rgb */ color: rgb(152, 126, 35);
/* oklch */ color: oklch(60.1% 0.110 92.2);
Tailwind
colors: {
  custom: {
    50: '#baa365',
    500: '#987e23',
    950: '#000000',
  },
}
SCSS
$custom: #987e23;
$custom-light: #baa365;
$custom-dark: #000000;
JSON
{
  "hex": "#987e23",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 46.667,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6013,
    "c": 0.11009,
    "h": 92.2
  },
  "luminance": 0.21718
}

Semantic roles & 50–950 ramp

primary
#987E23
secondary
#596FBE
accent
#66E642
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E23

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

Preview Lab → · Contrast checker → · Palette generator →

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