#878F20#878F20

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

Color values

HEX#878F20
RGBrgb(135, 143, 32)
HSLhsl(64, 63%, 34%)
HSVhsv(64, 78%, 56%)
CMYKcmyk(5.6%, 0%, 77.6%, 43.9%)
CIE-LABlab(56.98, -16.79, 53.66)
CIE-LCHlch(56.98, 56.23, 107.38°)
OKLaboklab(62.34% -0.0518 0.1177)
OKLCHoklch(62.34% 0.129 113.8)
XYZxyz(20.0755, 24.9005, 5.1150)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F20 #28208F
analogous
#8F6020 #878F20 #508F20
triadic
#878F20 #20878F #8F2087
tetradic
#878F20 #208F60 #28208F #8F2050
square
#878F20 #208F60 #28208F #8F2050
split-complementary
#878F20 #20508F #60208F
monochromatic
#292B0A #585D15 #878F20 #B6C12B #CED851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878F20#FFFFFF#000000##000000
##878F201.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)
#9A8803
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#90867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f20;
/* rgb */ color: rgb(135, 143, 32);
/* oklch */ color: oklch(62.3% 0.129 113.8);
Tailwind
colors: {
  custom: {
    50: '#adaf65',
    500: '#878f20',
    950: '#000000',
  },
}
SCSS
$custom: #878f20;
$custom-light: #adaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#878f20",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 64.324,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62337,
    "c": 0.12858,
    "h": 113.8
  },
  "luminance": 0.249
}

Semantic roles & 50–950 ramp

primary
#878F20
secondary
#574FBB
accent
#41E64D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F20

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

Preview Lab → · Contrast checker → · Palette generator →

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