#878E2F#878E2F

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

Color values

HEX#878E2F
RGBrgb(135, 142, 47)
HSLhsl(64, 50%, 37%)
HSVhsv(64, 67%, 56%)
CMYKcmyk(4.9%, 0%, 66.9%, 44.3%)
CIE-LABlab(56.78, -15.45, 47.75)
CIE-LCHlch(56.78, 50.19, 107.93°)
OKLaboklab(62.21% -0.0466 0.1079)
OKLCHoklch(62.21% 0.118 113.4)
XYZxyz(20.1783, 24.7025, 6.3939)
Luminance0.2470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E2F #362F8E
analogous
#8E662F #878E2F #588E2F
triadic
#878E2F #2F878E #8E2F87
tetradic
#878E2F #2F8E66 #362F8E #8E2F58
square
#878E2F #2F8E66 #362F8E #8E2F58
split-complementary
#878E2F #2F588E #662F8E
monochromatic
#303211 #5B6020 #878E2F #B3BC3E #C6CE6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E2F#FFFFFF#000000##000000
##878E2F1.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)
#988722
Deuteranopia (green-blind)
#988936
Tritanopia (blue-blind)
#90867B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e2f;
/* rgb */ color: rgb(135, 142, 47);
/* oklch */ color: oklch(62.2% 0.117 113.4);
Tailwind
colors: {
  custom: {
    50: '#adae6d',
    500: '#878e2f',
    950: '#000000',
  },
}
SCSS
$custom: #878e2f;
$custom-light: #adae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#878e2f",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 64.421,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62213,
    "c": 0.1175,
    "h": 113.4
  },
  "luminance": 0.24702
}

Semantic roles & 50–950 ramp

primary
#878E2F
secondary
#6A64B5
accent
#4EDA58
background
#FAFAF6
surface
#F5F4EC
border
#CFCEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #878E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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