#987D28#987D28

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

Color values

HEX#987D28
RGBrgb(152, 125, 40)
HSLhsl(46, 58%, 38%)
HSVhsv(46, 74%, 60%)
CMYKcmyk(0%, 17.8%, 73.7%, 40.4%)
CIE-LABlab(53.49, 1.14, 47.87)
CIE-LCHlch(53.49, 47.88, 88.63°)
OKLaboklab(59.95% -0.0014 0.1063)
OKLCHoklch(59.95% 0.106 90.8)
XYZxyz(20.6667, 21.4971, 5.0679)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987D28 #284398
analogous
#984528 #987D28 #7B9828
triadic
#987D28 #28987D #7D2898
tetradic
#987D28 #289845 #284398 #98287B
square
#987D28 #289845 #284398 #98287B
split-complementary
#987D28 #287B98 #452898
monochromatic
#372D0F #68551B #987D28 #C8A535 #D6BB64

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987D28#FFFFFF#000000##000000
##987D281.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)
#8B7B1B
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#A5726C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987d28;
/* rgb */ color: rgb(152, 125, 40);
/* oklch */ color: oklch(60.0% 0.106 90.8);
Tailwind
colors: {
  custom: {
    50: '#baa268',
    500: '#987d28',
    950: '#000000',
  },
}
SCSS
$custom: #987d28;
$custom-light: #baa268;
$custom-dark: #000000;
JSON
{
  "hex": "#987d28",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 45.536,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59952,
    "c": 0.10628,
    "h": 90.8
  },
  "luminance": 0.21496
}

Semantic roles & 50–950 ramp

primary
#987D28
secondary
#6076BC
accent
#6CE246
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987D28

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

Preview Lab → · Contrast checker → · Palette generator →

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