#987E2E#987E2E

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

Color values

HEX#987E2E
RGBrgb(152, 126, 46)
HSLhsl(45, 54%, 39%)
HSVhsv(45, 70%, 60%)
CMYKcmyk(0%, 17.1%, 69.7%, 40.4%)
CIE-LABlab(53.81, 0.91, 45.59)
CIE-LCHlch(53.81, 45.60, 88.86°)
OKLaboklab(60.22% -0.0014 0.1026)
OKLCHoklch(60.22% 0.103 90.8)
XYZxyz(20.9040, 21.7956, 5.6902)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987E2E #2E4898
analogous
#98492E #987E2E #7D982E
triadic
#987E2E #2E987E #7E2E98
tetradic
#987E2E #2E9849 #2E4898 #982E7D
square
#987E2E #2E9849 #2E4898 #982E7D
split-complementary
#987E2E #2E7D98 #492E98
monochromatic
#3A3012 #695720 #987E2E #C5A43E #D3BA6D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987E2E#FFFFFF#000000##000000
##987E2E1.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)
#8C7C24
Deuteranopia (green-blind)
#928432
Tritanopia (blue-blind)
#A4746D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #987e2e;
/* rgb */ color: rgb(152, 126, 46);
/* oklch */ color: oklch(60.2% 0.103 90.8);
Tailwind
colors: {
  custom: {
    50: '#baa36b',
    500: '#987e2e',
    950: '#000000',
  },
}
SCSS
$custom: #987e2e;
$custom-light: #baa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#987e2e",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 45.283,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.6022,
    "c": 0.10259,
    "h": 90.8
  },
  "luminance": 0.21794
}

Semantic roles & 50–950 ramp

primary
#987E2E
secondary
#687CBA
accent
#6FDD4B
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120F07
muted
#817E7A

Preview Lab

Preview with #987E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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