#878D2D#878D2D

#878D2D is a mid, moderate yellow. Relative luminance 0.244; OKLCH L 62.0% C 0.118 H 112.8°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#878D2D
RGBrgb(135, 141, 45)
HSLhsl(64, 52%, 36%)
HSVhsv(64, 68%, 55%)
CMYKcmyk(4.3%, 0%, 68.1%, 44.7%)
CIE-LABlab(56.48, -15.05, 48.28)
CIE-LCHlch(56.48, 50.57, 107.31°)
OKLaboklab(61.96% -0.0457 0.1086)
OKLCHoklch(61.96% 0.118 112.8)
XYZxyz(19.9908, 24.3905, 6.1369)
Luminance0.2439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D2D #332D8D
analogous
#8D632D #878D2D #578D2D
triadic
#878D2D #2D878D #8D2D87
tetradic
#878D2D #2D8D63 #332D8D #8D2D57
square
#878D2D #2D8D63 #332D8D #8D2D57
split-complementary
#878D2D #2D578D #632D8D
monochromatic
#2E300F #5B5F1E #878D2D #B3BB3C #C8CE66

Accessibility & contrast

On white

3.57
#878D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#878D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878D2D
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878D2D#FFFFFF#000000##000000
##878D2D1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861F
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #878d2d;
/* rgb */ color: rgb(135, 141, 45);
/* oklch */ color: oklch(62.0% 0.118 112.8);
Tailwind
colors: {
  custom: {
    50: '#adae6c',
    500: '#878d2d',
    950: '#000000',
  },
}
SCSS
$custom: #878d2d;
$custom-light: #adae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#878d2d",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 63.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61962,
    "c": 0.11786,
    "h": 112.8
  },
  "luminance": 0.2439
}

Semantic roles & 50–950 ramp

primary
#878D2D
secondary
#6661B5
accent
#4DDB56
background
#FAFAF6
surface
#F5F4EC
border
#CFCEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #878D2D

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

Preview Lab → · Contrast checker → · Palette generator →

#878D2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva