#878D18#878D18

#878D18 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.130 H 112.8°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#878D18
RGBrgb(135, 141, 24)
HSLhsl(63, 71%, 32%)
HSVhsv(63, 83%, 55%)
CMYKcmyk(4.3%, 0%, 83%, 44.7%)
CIE-LABlab(56.35, -16.06, 55.54)
CIE-LCHlch(56.35, 57.82, 106.13°)
OKLaboklab(61.83% -0.0504 0.1202)
OKLCHoklch(61.83% 0.13 112.8)
XYZxyz(19.6821, 24.2671, 4.5112)
Luminance0.2427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878D18 #1E188D
analogous
#8D5918 #878D18 #4C8D18
triadic
#878D18 #18878D #8D1887
tetradic
#878D18 #188D59 #1E188D #8D184C
square
#878D18 #188D59 #1E188D #8D184C
split-complementary
#878D18 #184C8D #59188D
monochromatic
#232406 #55590F #878D18 #B9C121 #D7DF41

Accessibility & contrast

On white

3.59
#878D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#878D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878D18
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878D18#FFFFFF#000000##000000
##878D181.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#988824
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #878d18;
/* rgb */ color: rgb(135, 141, 24);
/* oklch */ color: oklch(61.8% 0.130 112.8);
Tailwind
colors: {
  custom: {
    50: '#aeae62',
    500: '#878d18',
    950: '#000000',
  },
}
SCSS
$custom: #878d18;
$custom-light: #aeae62;
$custom-dark: #000000;
JSON
{
  "hex": "#878d18",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 63.077,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61825,
    "c": 0.13037,
    "h": 112.8
  },
  "luminance": 0.24267
}

Semantic roles & 50–950 ramp

primary
#878D18
secondary
#4842BF
accent
#3AEE43
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878D18

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

Preview Lab → · Contrast checker → · Palette generator →

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