#987E2A#987E2A

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

Color values

HEX#987E2A
RGBrgb(152, 126, 42)
HSLhsl(46, 57%, 38%)
HSVhsv(46, 72%, 60%)
CMYKcmyk(0%, 17.1%, 72.4%, 40.4%)
CIE-LABlab(53.78, 0.68, 47.31)
CIE-LCHlch(53.78, 47.31, 89.17°)
OKLaboklab(60.18% -0.0025 0.1055)
OKLCHoklch(60.18% 0.106 91.4)
XYZxyz(20.8288, 21.7655, 5.2941)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E2A #2A4498
analogous
#98472A #987E2A #7B982A
triadic
#987E2A #2A987E #7E2A98
tetradic
#987E2A #2A9847 #2A4498 #982A7B
square
#987E2A #2A9847 #2A4498 #982A7B
split-complementary
#987E2A #2A7B98 #472A98
monochromatic
#382F10 #68561D #987E2A #C8A637 #D5BB67

Accessibility & contrast

On white

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

On black

5.35
#987E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987E2A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987E2A#FFFFFF#000000##000000
##987E2A1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1E
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#A5736D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #987e2a;
/* rgb */ color: rgb(152, 126, 42);
/* oklch */ color: oklch(60.2% 0.106 91.4);
Tailwind
colors: {
  custom: {
    50: '#baa369',
    500: '#987e2a',
    950: '#000000',
  },
}
SCSS
$custom: #987e2a;
$custom-light: #baa369;
$custom-dark: #000000;
JSON
{
  "hex": "#987e2a",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 45.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.60184,
    "c": 0.10551,
    "h": 91.4
  },
  "luminance": 0.21764
}

Semantic roles & 50–950 ramp

primary
#987E2A
secondary
#6277BB
accent
#6CE048
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F06
muted
#817E7A

Preview Lab

Preview with #987E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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