#878E2D#878E2D

#878E2D is a light, moderate yellow. Relative luminance 0.247; OKLCH L 62.2% C 0.119 H 113.4°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#878E2D
RGBrgb(135, 142, 45)
HSLhsl(64, 52%, 37%)
HSVhsv(64, 68%, 56%)
CMYKcmyk(4.9%, 0%, 68.3%, 44.3%)
CIE-LABlab(56.77, -15.58, 48.58)
CIE-LCHlch(56.77, 51.01, 107.78°)
OKLaboklab(62.2% -0.0472 0.1093)
OKLCHoklch(62.2% 0.119 113.4)
XYZxyz(20.1389, 24.6868, 6.1863)
Luminance0.2469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E2D #342D8E
analogous
#8E652D #878E2D #578E2D
triadic
#878E2D #2D878E #8E2D87
tetradic
#878E2D #2D8E65 #342D8E #8E2D57
square
#878E2D #2D8E65 #342D8E #8E2D57
split-complementary
#878E2D #2D578E #652D8E
monochromatic
#2F3110 #5B601E #878E2D #B3BC3C #C7CF67

Accessibility & contrast

On white

3.54
#878E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#878E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E2D
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E2D#FFFFFF#000000##000000
##878E2D1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871F
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#90867A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e2d;
/* rgb */ color: rgb(135, 142, 45);
/* oklch */ color: oklch(62.2% 0.119 113.4);
Tailwind
colors: {
  custom: {
    50: '#adae6c',
    500: '#878e2d',
    950: '#000000',
  },
}
SCSS
$custom: #878e2d;
$custom-light: #adae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#878e2d",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 64.33,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62196,
    "c": 0.11902,
    "h": 113.4
  },
  "luminance": 0.24686
}

Semantic roles & 50–950 ramp

primary
#878E2D
secondary
#6761B5
accent
#4CDB57
background
#FAFAF6
surface
#F5F4EC
border
#CFCEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #878E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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