#878F17#878F17

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

Color values

HEX#878F17
RGBrgb(135, 143, 23)
HSLhsl(64, 72%, 33%)
HSVhsv(64, 84%, 56%)
CMYKcmyk(5.6%, 0%, 83.9%, 43.9%)
CIE-LABlab(56.94, -17.14, 56.32)
CIE-LCHlch(56.94, 58.87, 106.93°)
OKLaboklab(62.29% -0.0535 0.1217)
OKLCHoklch(62.29% 0.133 113.7)
XYZxyz(19.9694, 24.8581, 4.5566)
Luminance0.2486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F17 #1F178F
analogous
#8F5B17 #878F17 #4B8F17
triadic
#878F17 #17878F #8F1787
tetradic
#878F17 #178F5B #1F178F #8F174B
square
#878F17 #178F5B #1F178F #8F174B
split-complementary
#878F17 #174B8F #5B178F
monochromatic
#232606 #555A0F #878F17 #B9C41F #D6E040

Accessibility & contrast

On white

3.52
#878F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#878F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878F17
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878F17#FFFFFF#000000##000000
##878F171.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9A8A24
Tritanopia (blue-blind)
#91867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f17;
/* rgb */ color: rgb(135, 143, 23);
/* oklch */ color: oklch(62.3% 0.133 113.7);
Tailwind
colors: {
  custom: {
    50: '#aeaf62',
    500: '#878f17',
    950: '#000000',
  },
}
SCSS
$custom: #878f17;
$custom-light: #aeaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#878f17",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 64,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.62291,
    "c": 0.13293,
    "h": 113.7
  },
  "luminance": 0.24858
}

Semantic roles & 50–950 ramp

primary
#878F17
secondary
#4A41C1
accent
#39EF45
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F17

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

Preview Lab → · Contrast checker → · Palette generator →

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