#987F23#987F23

#987F23 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.3% C 0.111 H 93.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#987F23
RGBrgb(152, 127, 35)
HSLhsl(47, 63%, 37%)
HSVhsv(47, 77%, 60%)
CMYKcmyk(0%, 16.4%, 77%, 40.4%)
CIE-LABlab(54.00, -0.22, 50.37)
CIE-LCHlch(54.00, 50.37, 90.25°)
OKLaboklab(60.35% -0.0059 0.1106)
OKLCHoklch(60.35% 0.111 93.1)
XYZxyz(20.8428, 21.9767, 4.7339)
Luminance0.2198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F23 #233C98
analogous
#984423 #987F23 #779823
triadic
#987F23 #23987F #7F2398
tetradic
#987F23 #239844 #233C98 #982377
square
#987F23 #239844 #233C98 #982377
split-complementary
#987F23 #237798 #442398
monochromatic
#352C0C #665518 #987F23 #CAA92E #D9BF5C

Accessibility & contrast

On white

3.89
#987F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#987F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987F23
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987F23#FFFFFF#000000##000000
##987F231.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D12
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f23;
/* rgb */ color: rgb(152, 127, 35);
/* oklch */ color: oklch(60.3% 0.111 93.1);
Tailwind
colors: {
  custom: {
    50: '#baa365',
    500: '#987f23',
    950: '#000000',
  },
}
SCSS
$custom: #987f23;
$custom-light: #baa365;
$custom-dark: #000000;
JSON
{
  "hex": "#987f23",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 47.179,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60346,
    "c": 0.11072,
    "h": 93.1
  },
  "luminance": 0.21975
}

Semantic roles & 50–950 ramp

primary
#987F23
secondary
#596EBE
accent
#65E642
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F23

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

Preview Lab → · Contrast checker → · Palette generator →

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