#878E20#878E20

#878E20 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.127 H 113.3°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#878E20
RGBrgb(135, 142, 32)
HSLhsl(64, 63%, 34%)
HSVhsv(64, 77%, 56%)
CMYKcmyk(4.9%, 0%, 77.5%, 44.3%)
CIE-LABlab(56.69, -16.27, 53.39)
CIE-LCHlch(56.69, 55.81, 106.95°)
OKLaboklab(62.1% -0.0504 0.1171)
OKLCHoklch(62.1% 0.127 113.3)
XYZxyz(19.9260, 24.6016, 5.0651)
Luminance0.2460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E20 #27208E
analogous
#8E5E20 #878E20 #508E20
triadic
#878E20 #20878E #8E2087
tetradic
#878E20 #208E5E #27208E #8E2050
square
#878E20 #208E5E #27208E #8E2050
split-complementary
#878E20 #20508E #5E208E
monochromatic
#282A09 #585C15 #878E20 #B6C02B #CFD851

Accessibility & contrast

On white

3.55
#878E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#878E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E20
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E20#FFFFFF#000000##000000
##878E201.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998704
Deuteranopia (green-blind)
#99892A
Tritanopia (blue-blind)
#908579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e20;
/* rgb */ color: rgb(135, 142, 32);
/* oklch */ color: oklch(62.1% 0.127 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae65',
    500: '#878e20',
    950: '#000000',
  },
}
SCSS
$custom: #878e20;
$custom-light: #adae65;
$custom-dark: #000000;
JSON
{
  "hex": "#878e20",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 63.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62102,
    "c": 0.12748,
    "h": 113.3
  },
  "luminance": 0.24601
}

Semantic roles & 50–950 ramp

primary
#878E20
secondary
#564FBB
accent
#42E64C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E20

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

Preview Lab → · Contrast checker → · Palette generator →

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