#878E11#878E11

#878E11 is a light, vivid yellow. Relative luminance 0.245; OKLCH L 62.0% C 0.134 H 113.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#878E11
RGBrgb(135, 142, 17)
HSLhsl(63, 79%, 31%)
HSVhsv(63, 88%, 56%)
CMYKcmyk(4.9%, 0%, 88%, 44.3%)
CIE-LABlab(56.62, -16.79, 57.50)
CIE-LCHlch(56.62, 59.90, 106.28°)
OKLaboklab(62.03% -0.0529 0.1232)
OKLCHoklch(62.03% 0.134 113.2)
XYZxyz(19.7665, 24.5378, 4.2252)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E11 #18118E
analogous
#8E5611 #878E11 #488E11
triadic
#878E11 #11878E #8E1187
tetradic
#878E11 #118E56 #18118E #8E1148
square
#878E11 #118E56 #18118E #8E1148
split-complementary
#878E11 #11488E #56118E
monochromatic
#1F2104 #53570A #878E11 #BBC518 #DCE733

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E11#FFFFFF#000000##000000
##878E111.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)
#998920
Tritanopia (blue-blind)
#918579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e11;
/* rgb */ color: rgb(135, 142, 17);
/* oklch */ color: oklch(62.0% 0.134 113.2);
Tailwind
colors: {
  custom: {
    50: '#aeae5f',
    500: '#878e11',
    950: '#000000',
  },
}
SCSS
$custom: #878e11;
$custom-light: #aeae5f;
$custom-dark: #000000;
JSON
{
  "hex": "#878e11",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 17
  },
  "hsl": {
    "h": 63.36,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.62032,
    "c": 0.13412,
    "h": 113.2
  },
  "luminance": 0.24537
}

Semantic roles & 50–950 ramp

primary
#878E11
secondary
#4038C2
accent
#33F53E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878E11

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

Preview Lab → · Contrast checker → · Palette generator →

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