#878F1E#878F1E

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

Color values

HEX#878F1E
RGBrgb(135, 143, 30)
HSLhsl(64, 65%, 34%)
HSVhsv(64, 79%, 56%)
CMYKcmyk(5.6%, 0%, 79%, 43.9%)
CIE-LABlab(56.97, -16.88, 54.30)
CIE-LCHlch(56.97, 56.86, 107.27°)
OKLaboklab(62.33% -0.0522 0.1187)
OKLCHoklch(62.33% 0.13 113.8)
XYZxyz(20.0491, 24.8900, 4.9761)
Luminance0.2489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F1E #261E8F
analogous
#8F5F1E #878F1E #4F8F1E
triadic
#878F1E #1E878F #8F1E87
tetradic
#878F1E #1E8F5F #261E8F #8F1E4F
square
#878F1E #1E8F5F #261E8F #8F1E4F
split-complementary
#878F1E #1E4F8F #5F1E8F
monochromatic
#272A09 #575C13 #878F1E #B7C229 #D0DA4E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878F1E#FFFFFF#000000##000000
##878F1E1.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)
#9A8800
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#90867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f1e;
/* rgb */ color: rgb(135, 143, 30);
/* oklch */ color: oklch(62.3% 0.130 113.8);
Tailwind
colors: {
  custom: {
    50: '#adaf64',
    500: '#878f1e',
    950: '#000000',
  },
}
SCSS
$custom: #878f1e;
$custom-light: #adaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#878f1e",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 30
  },
  "hsl": {
    "h": 64.248,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.62326,
    "c": 0.12965,
    "h": 113.8
  },
  "luminance": 0.2489
}

Semantic roles & 50–950 ramp

primary
#878F1E
secondary
#544CBC
accent
#40E84B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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