#878E2A#878E2A

#878E2A is a light, vivid yellow. Relative luminance 0.247; OKLCH L 62.2% C 0.121 H 113.3°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#878E2A
RGBrgb(135, 142, 42)
HSLhsl(64, 54%, 36%)
HSVhsv(64, 70%, 56%)
CMYKcmyk(4.9%, 0%, 70.4%, 44.3%)
CIE-LABlab(56.75, -15.76, 49.77)
CIE-LCHlch(56.75, 52.21, 107.57°)
OKLaboklab(62.17% -0.048 0.1113)
OKLCHoklch(62.17% 0.121 113.3)
XYZxyz(20.0832, 24.6645, 5.8928)
Luminance0.2466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E2A #312A8E
analogous
#8E632A #878E2A #558E2A
triadic
#878E2A #2A878E #8E2A87
tetradic
#878E2A #2A8E63 #312A8E #8E2A55
square
#878E2A #2A8E63 #312A8E #8E2A55
split-complementary
#878E2A #2A558E #632A8E
monochromatic
#2D300E #5A5F1C #878E2A #B4BD38 #C9D162

Accessibility & contrast

On white

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

On black

5.93
#878E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E2A
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E2A#FFFFFF#000000##000000
##878E2A1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871A
Deuteranopia (green-blind)
#998931
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e2a;
/* rgb */ color: rgb(135, 142, 42);
/* oklch */ color: oklch(62.2% 0.121 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae6a',
    500: '#878e2a',
    950: '#000000',
  },
}
SCSS
$custom: #878e2a;
$custom-light: #adae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#878e2a",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 64.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62171,
    "c": 0.12119,
    "h": 113.3
  },
  "luminance": 0.24664
}

Semantic roles & 50–950 ramp

primary
#878E2A
secondary
#645DB6
accent
#4ADE54
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #878E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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