#987F28#987F28

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

Color values

HEX#987F28
RGBrgb(152, 127, 40)
HSLhsl(47, 58%, 38%)
HSVhsv(47, 74%, 60%)
CMYKcmyk(0%, 16.4%, 73.7%, 40.4%)
CIE-LABlab(54.04, 0.02, 48.41)
CIE-LCHlch(54.04, 48.41, 89.98°)
OKLaboklab(60.38% -0.0046 0.1074)
OKLCHoklch(60.38% 0.108 92.5)
XYZxyz(20.9224, 22.0086, 5.1531)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987F28 #284198
analogous
#984728 #987F28 #799828
triadic
#987F28 #28987F #7F2898
tetradic
#987F28 #289847 #284198 #982879
square
#987F28 #289847 #284198 #982879
split-complementary
#987F28 #287998 #472898
monochromatic
#372E0F #68571B #987F28 #C8A735 #D6BD64

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987F28#FFFFFF#000000##000000
##987F281.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)
#8D7D1B
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#A5746E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987f28;
/* rgb */ color: rgb(152, 127, 40);
/* oklch */ color: oklch(60.4% 0.108 92.5);
Tailwind
colors: {
  custom: {
    50: '#baa368',
    500: '#987f28',
    950: '#000000',
  },
}
SCSS
$custom: #987f28;
$custom-light: #baa368;
$custom-dark: #000000;
JSON
{
  "hex": "#987f28",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 46.607,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.60384,
    "c": 0.10752,
    "h": 92.5
  },
  "luminance": 0.22007
}

Semantic roles & 50–950 ramp

primary
#987F28
secondary
#6074BC
accent
#69E246
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #987F28

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

Preview Lab → · Contrast checker → · Palette generator →

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