#878E12#878E12

#878E12 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#878E12
RGBrgb(135, 142, 18)
HSLhsl(63, 78%, 31%)
HSVhsv(63, 87%, 56%)
CMYKcmyk(4.9%, 0%, 87.3%, 44.3%)
CIE-LABlab(56.63, -16.77, 57.28)
CIE-LCHlch(56.63, 59.68, 106.32°)
OKLaboklab(62.04% -0.0528 0.1229)
OKLCHoklch(62.04% 0.134 113.2)
XYZxyz(19.7745, 24.5410, 4.2674)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E12 #19128E
analogous
#8E5712 #878E12 #498E12
triadic
#878E12 #12878E #8E1287
tetradic
#878E12 #128E57 #19128E #8E1249
square
#878E12 #128E57 #19128E #8E1249
split-complementary
#878E12 #12498E #57128E
monochromatic
#202104 #53580B #878E12 #BBC419 #DBE535

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E12#FFFFFF#000000##000000
##878E121.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: #878e12;
/* rgb */ color: rgb(135, 142, 18);
/* oklch */ color: oklch(62.0% 0.134 113.2);
Tailwind
colors: {
  custom: {
    50: '#aeae60',
    500: '#878e12',
    950: '#000000',
  },
}
SCSS
$custom: #878e12;
$custom-light: #aeae60;
$custom-dark: #000000;
JSON
{
  "hex": "#878e12",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 63.387,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.62035,
    "c": 0.13378,
    "h": 113.2
  },
  "luminance": 0.24541
}

Semantic roles & 50–950 ramp

primary
#878E12
secondary
#413AC2
accent
#34F43F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878E12

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

Preview Lab → · Contrast checker → · Palette generator →

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