#987E30#987E30

#987E30 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 60.2% C 0.101 H 90.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#987E30
RGBrgb(152, 126, 48)
HSLhsl(45, 52%, 39%)
HSVhsv(45, 68%, 60%)
CMYKcmyk(0%, 17.1%, 68.4%, 40.4%)
CIE-LABlab(53.83, 1.03, 44.70)
CIE-LCHlch(53.83, 44.71, 88.68°)
OKLaboklab(60.24% -0.0008 0.1011)
OKLCHoklch(60.24% 0.101 90.4)
XYZxyz(20.9443, 21.8117, 5.9026)
Luminance0.2181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E30 #304A98
analogous
#984A30 #987E30 #7E9830
triadic
#987E30 #30987E #7E3098
tetradic
#987E30 #30984A #304A98 #98307E
square
#987E30 #30984A #304A98 #98307E
split-complementary
#987E30 #307E98 #4A3098
monochromatic
#3B3113 #695721 #987E30 #C3A342 #D2BA70

Accessibility & contrast

On white

3.92
#987E30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#987E30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E30
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E30#FFFFFF#000000##000000
##987E301.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C27
Deuteranopia (green-blind)
#928434
Tritanopia (blue-blind)
#A4746E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987e30;
/* rgb */ color: rgb(152, 126, 48);
/* oklch */ color: oklch(60.2% 0.101 90.4);
Tailwind
colors: {
  custom: {
    50: '#baa36c',
    500: '#987e30',
    950: '#000000',
  },
}
SCSS
$custom: #987e30;
$custom-light: #baa36c;
$custom-dark: #000000;
JSON
{
  "hex": "#987e30",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 48
  },
  "hsl": {
    "h": 45,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60239,
    "c": 0.10105,
    "h": 90.4
  },
  "luminance": 0.21811
}

Semantic roles & 50–950 ramp

primary
#987E30
secondary
#6A7EBA
accent
#70DB4C
background
#FBF9F6
surface
#F7F2EC
border
#D0CCC7
text
#120F07
muted
#817E7A

Preview Lab

Preview with #987E30

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

Preview Lab → · Contrast checker → · Palette generator →

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