#987C28#987C28

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

Color values

HEX#987C28
RGBrgb(152, 124, 40)
HSLhsl(45, 58%, 38%)
HSVhsv(45, 74%, 60%)
CMYKcmyk(0%, 18.4%, 73.7%, 40.4%)
CIE-LABlab(53.22, 1.70, 47.60)
CIE-LCHlch(53.22, 47.63, 87.95°)
OKLaboklab(59.74% 0.0002 0.1057)
OKLCHoklch(59.74% 0.106 89.9)
XYZxyz(20.5407, 21.2452, 5.0259)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987C28 #284498
analogous
#984428 #987C28 #7C9828
triadic
#987C28 #28987C #7C2898
tetradic
#987C28 #289844 #284498 #98287C
square
#987C28 #289844 #284498 #98287C
split-complementary
#987C28 #287C98 #442898
monochromatic
#372D0F #68541B #987C28 #C8A435 #D6BA64

Accessibility & contrast

On white

4.00
#987C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#987C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987C28
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987C28#FFFFFF#000000##000000
##987C281.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1C
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#A5716B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #987c28;
/* rgb */ color: rgb(152, 124, 40);
/* oklch */ color: oklch(59.7% 0.106 89.9);
Tailwind
colors: {
  custom: {
    50: '#baa167',
    500: '#987c28',
    950: '#000000',
  },
}
SCSS
$custom: #987c28;
$custom-light: #baa167;
$custom-dark: #000000;
JSON
{
  "hex": "#987c28",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 45,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59738,
    "c": 0.1057,
    "h": 89.9
  },
  "luminance": 0.21244
}

Semantic roles & 50–950 ramp

primary
#987C28
secondary
#6077BC
accent
#6DE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #987C28

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

Preview Lab → · Contrast checker → · Palette generator →

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