#878E18#878E18

#878E18 is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.131 H 113.3°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#878E18
RGBrgb(135, 142, 24)
HSLhsl(64, 71%, 33%)
HSVhsv(64, 83%, 56%)
CMYKcmyk(4.9%, 0%, 83.1%, 44.3%)
CIE-LABlab(56.65, -16.58, 55.80)
CIE-LCHlch(56.65, 58.21, 106.55°)
OKLaboklab(62.06% -0.0519 0.1208)
OKLCHoklch(62.06% 0.131 113.3)
XYZxyz(19.8302, 24.5633, 4.5606)
Luminance0.2456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E18 #1F188E
analogous
#8E5A18 #878E18 #4C8E18
triadic
#878E18 #18878E #8E1887
tetradic
#878E18 #188E5A #1F188E #8E184C
square
#878E18 #188E5A #1F188E #8E184C
split-complementary
#878E18 #184C8E #5A188E
monochromatic
#232506 #555A0F #878E18 #B9C221 #D6DF41

Accessibility & contrast

On white

3.55
#878E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#878E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E18
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E18#FFFFFF#000000##000000
##878E181.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#998924
Tritanopia (blue-blind)
#918579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e18;
/* rgb */ color: rgb(135, 142, 24);
/* oklch */ color: oklch(62.1% 0.131 113.3);
Tailwind
colors: {
  custom: {
    50: '#aeae62',
    500: '#878e18',
    950: '#000000',
  },
}
SCSS
$custom: #878e18;
$custom-light: #aeae62;
$custom-dark: #000000;
JSON
{
  "hex": "#878e18",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 63.559,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6206,
    "c": 0.13144,
    "h": 113.3
  },
  "luminance": 0.24563
}

Semantic roles & 50–950 ramp

primary
#878E18
secondary
#4A42C0
accent
#3AEE45
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E18

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

Preview Lab → · Contrast checker → · Palette generator →

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