#987F27#987F27

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

Color values

HEX#987F27
RGBrgb(152, 127, 39)
HSLhsl(47, 59%, 37%)
HSVhsv(47, 74%, 60%)
CMYKcmyk(0%, 16.4%, 74.3%, 40.4%)
CIE-LABlab(54.03, -0.03, 48.81)
CIE-LCHlch(54.03, 48.81, 90.04°)
OKLaboklab(60.38% -0.0049 0.1081)
OKLCHoklch(60.38% 0.108 92.6)
XYZxyz(20.9056, 22.0019, 5.0647)
Luminance0.2200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F27 #274098
analogous
#984727 #987F27 #789827
triadic
#987F27 #27987F #7F2798
tetradic
#987F27 #279847 #274098 #982778
square
#987F27 #279847 #274098 #982778
split-complementary
#987F27 #277898 #472798
monochromatic
#372E0E #67561B #987F27 #C9A833 #D7BD63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F27#FFFFFF#000000##000000
##987F271.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)
#8D7D19
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#A5746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f27;
/* rgb */ color: rgb(152, 127, 39);
/* oklch */ color: oklch(60.4% 0.108 92.6);
Tailwind
colors: {
  custom: {
    50: '#baa367',
    500: '#987f27',
    950: '#000000',
  },
}
SCSS
$custom: #987f27;
$custom-light: #baa367;
$custom-dark: #000000;
JSON
{
  "hex": "#987f27",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 46.726,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60376,
    "c": 0.10819,
    "h": 92.6
  },
  "luminance": 0.22001
}

Semantic roles & 50–950 ramp

primary
#987F27
secondary
#5E73BC
accent
#68E245
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F27

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

Preview Lab → · Contrast checker → · Palette generator →

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