#878F22#878F22

#878F22 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.3% C 0.127 H 113.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#878F22
RGBrgb(135, 143, 34)
HSLhsl(64, 62%, 35%)
HSVhsv(64, 76%, 56%)
CMYKcmyk(5.6%, 0%, 76.2%, 43.9%)
CIE-LABlab(56.99, -16.70, 52.99)
CIE-LCHlch(56.99, 55.56, 107.49°)
OKLaboklab(62.35% -0.0514 0.1166)
OKLCHoklch(62.35% 0.127 113.8)
XYZxyz(20.1035, 24.9117, 5.2625)
Luminance0.2491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F22 #2A228F
analogous
#8F6122 #878F22 #508F22
triadic
#878F22 #22878F #8F2287
tetradic
#878F22 #228F61 #2A228F #8F2250
square
#878F22 #228F61 #2A228F #8F2250
split-complementary
#878F22 #22508F #61228F
monochromatic
#2A2C0A #585E16 #878F22 #B6C02E #CDD755

Accessibility & contrast

On white

3.51
#878F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#878F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878F22
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878F22#FFFFFF#000000##000000
##878F221.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8809
Deuteranopia (green-blind)
#9A8A2B
Tritanopia (blue-blind)
#90867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f22;
/* rgb */ color: rgb(135, 143, 34);
/* oklch */ color: oklch(62.3% 0.127 113.8);
Tailwind
colors: {
  custom: {
    50: '#adaf66',
    500: '#878f22',
    950: '#000000',
  },
}
SCSS
$custom: #878f22;
$custom-light: #adaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#878f22",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 64.404,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62349,
    "c": 0.12746,
    "h": 113.8
  },
  "luminance": 0.24911
}

Semantic roles & 50–950 ramp

primary
#878F22
secondary
#5A52BA
accent
#43E54F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F22

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

Preview Lab → · Contrast checker → · Palette generator →

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