#987E28#987E28

#987E28 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.2% C 0.107 H 91.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#987E28
RGBrgb(152, 126, 40)
HSLhsl(46, 58%, 38%)
HSVhsv(46, 74%, 60%)
CMYKcmyk(0%, 17.1%, 73.7%, 40.4%)
CIE-LABlab(53.76, 0.58, 48.14)
CIE-LCHlch(53.76, 48.14, 89.31°)
OKLaboklab(60.17% -0.003 0.1069)
OKLCHoklch(60.17% 0.107 91.6)
XYZxyz(20.7939, 21.7515, 5.1103)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E28 #284298
analogous
#984628 #987E28 #7A9828
triadic
#987E28 #28987E #7E2898
tetradic
#987E28 #289846 #284298 #98287A
square
#987E28 #289846 #284298 #98287A
split-complementary
#987E28 #287A98 #462898
monochromatic
#372E0F #68561B #987E28 #C8A635 #D6BC64

Accessibility & contrast

On white

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

On black

5.35
#987E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E28
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E28#FFFFFF#000000##000000
##987E281.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1B
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#A5736D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e28;
/* rgb */ color: rgb(152, 126, 40);
/* oklch */ color: oklch(60.2% 0.107 91.6);
Tailwind
colors: {
  custom: {
    50: '#baa368',
    500: '#987e28',
    950: '#000000',
  },
}
SCSS
$custom: #987e28;
$custom-light: #baa368;
$custom-dark: #000000;
JSON
{
  "hex": "#987e28",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 46.071,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.60168,
    "c": 0.10689,
    "h": 91.6
  },
  "luminance": 0.2175
}

Semantic roles & 50–950 ramp

primary
#987E28
secondary
#6075BC
accent
#6AE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E28

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

Preview Lab → · Contrast checker → · Palette generator →

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