#878E22#878E22

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

Color values

HEX#878E22
RGBrgb(135, 142, 34)
HSLhsl(64, 61%, 35%)
HSVhsv(64, 76%, 56%)
CMYKcmyk(4.9%, 0%, 76.1%, 44.3%)
CIE-LABlab(56.70, -16.18, 52.72)
CIE-LCHlch(56.70, 55.14, 107.06°)
OKLaboklab(62.11% -0.0499 0.1161)
OKLCHoklch(62.11% 0.126 113.3)
XYZxyz(19.9540, 24.6128, 5.2127)
Luminance0.2461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E22 #29228E
analogous
#8E5F22 #878E22 #518E22
triadic
#878E22 #22878E #8E2287
tetradic
#878E22 #228E5F #29228E #8E2251
square
#878E22 #228E5F #29228E #8E2251
split-complementary
#878E22 #22518E #5F228E
monochromatic
#292B0A #585D16 #878E22 #B6BF2E #CED654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E22#FFFFFF#000000##000000
##878E221.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)
#998709
Deuteranopia (green-blind)
#99892B
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e22;
/* rgb */ color: rgb(135, 142, 34);
/* oklch */ color: oklch(62.1% 0.126 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae66',
    500: '#878e22',
    950: '#000000',
  },
}
SCSS
$custom: #878e22;
$custom-light: #adae66;
$custom-dark: #000000;
JSON
{
  "hex": "#878e22",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 63.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62114,
    "c": 0.12634,
    "h": 113.3
  },
  "luminance": 0.24612
}

Semantic roles & 50–950 ramp

primary
#878E22
secondary
#5952BA
accent
#43E44E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E22

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

Preview Lab → · Contrast checker → · Palette generator →

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