#987D27#987D27

#987D27 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.9% C 0.107 H 90.9°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#987D27
RGBrgb(152, 125, 39)
HSLhsl(46, 59%, 37%)
HSVhsv(46, 74%, 60%)
CMYKcmyk(0%, 17.8%, 74.3%, 40.4%)
CIE-LABlab(53.48, 1.09, 48.27)
CIE-LCHlch(53.48, 48.29, 88.71°)
OKLaboklab(59.94% -0.0017 0.1069)
OKLCHoklch(59.94% 0.107 90.9)
XYZxyz(20.6499, 21.4904, 4.9795)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D27 #274298
analogous
#984527 #987D27 #7A9827
triadic
#987D27 #27987D #7D2798
tetradic
#987D27 #279845 #274298 #98277A
square
#987D27 #279845 #274298 #98277A
split-complementary
#987D27 #277A98 #452798
monochromatic
#372D0E #67551B #987D27 #C9A533 #D7BB63

Accessibility & contrast

On white

3.96
#987D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#987D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987D27
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987D27#FFFFFF#000000##000000
##987D271.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1A
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d27;
/* rgb */ color: rgb(152, 125, 39);
/* oklch */ color: oklch(59.9% 0.107 90.9);
Tailwind
colors: {
  custom: {
    50: '#baa267',
    500: '#987d27',
    950: '#000000',
  },
}
SCSS
$custom: #987d27;
$custom-light: #baa267;
$custom-dark: #000000;
JSON
{
  "hex": "#987d27",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 45.664,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.59944,
    "c": 0.10695,
    "h": 90.9
  },
  "luminance": 0.21489
}

Semantic roles & 50–950 ramp

primary
#987D27
secondary
#5E75BC
accent
#6BE245
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D27

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

Preview Lab → · Contrast checker → · Palette generator →

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