#987E27#987E27

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

Color values

HEX#987E27
RGBrgb(152, 126, 39)
HSLhsl(46, 59%, 37%)
HSVhsv(46, 74%, 60%)
CMYKcmyk(0%, 17.1%, 74.3%, 40.4%)
CIE-LABlab(53.76, 0.53, 48.54)
CIE-LCHlch(53.76, 48.55, 89.38°)
OKLaboklab(60.16% -0.0033 0.1075)
OKLCHoklch(60.16% 0.108 91.8)
XYZxyz(20.7771, 21.7448, 5.0219)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E27 #274198
analogous
#984627 #987E27 #799827
triadic
#987E27 #27987E #7E2798
tetradic
#987E27 #279846 #274198 #982779
square
#987E27 #279846 #274198 #982779
split-complementary
#987E27 #277998 #462798
monochromatic
#372D0E #67561B #987E27 #C9A633 #D7BC63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987E27#FFFFFF#000000##000000
##987E271.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)
#8C7C1A
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#A5736D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e27;
/* rgb */ color: rgb(152, 126, 39);
/* oklch */ color: oklch(60.2% 0.108 91.8);
Tailwind
colors: {
  custom: {
    50: '#baa367',
    500: '#987e27',
    950: '#000000',
  },
}
SCSS
$custom: #987e27;
$custom-light: #baa367;
$custom-dark: #000000;
JSON
{
  "hex": "#987e27",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 46.195,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6016,
    "c": 0.10756,
    "h": 91.8
  },
  "luminance": 0.21744
}

Semantic roles & 50–950 ramp

primary
#987E27
secondary
#5E74BC
accent
#6AE245
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E27

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

Preview Lab → · Contrast checker → · Palette generator →

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