#878F1A#878F1A

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

Color values

HEX#878F1A
RGBrgb(135, 143, 26)
HSLhsl(64, 69%, 33%)
HSVhsv(64, 82%, 56%)
CMYKcmyk(5.6%, 0%, 81.8%, 43.9%)
CIE-LABlab(56.95, -17.04, 55.50)
CIE-LCHlch(56.95, 58.05, 107.06°)
OKLaboklab(62.31% -0.053 0.1205)
OKLCHoklch(62.31% 0.132 113.7)
XYZxyz(20.0012, 24.8708, 4.7240)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F1A #221A8F
analogous
#8F5D1A #878F1A #4C8F1A
triadic
#878F1A #1A878F #8F1A87
tetradic
#878F1A #1A8F5D #221A8F #8F1A4C
square
#878F1A #1A8F5D #221A8F #8F1A4C
split-complementary
#878F1A #1A4C8F #5D1A8F
monochromatic
#252707 #565B11 #878F1A #B8C323 #D3DD46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878F1A#FFFFFF#000000##000000
##878F1A1.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)
#9A8A26
Tritanopia (blue-blind)
#91867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f1a;
/* rgb */ color: rgb(135, 143, 26);
/* oklch */ color: oklch(62.3% 0.132 113.7);
Tailwind
colors: {
  custom: {
    50: '#adaf63',
    500: '#878f1a',
    950: '#000000',
  },
}
SCSS
$custom: #878f1a;
$custom-light: #adaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#878f1a",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 64.103,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.62305,
    "c": 0.13162,
    "h": 113.7
  },
  "luminance": 0.2487
}

Semantic roles & 50–950 ramp

primary
#878F1A
secondary
#4E46BF
accent
#3CEC48
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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