#878F16#878F16

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

Color values

HEX#878F16
RGBrgb(135, 143, 22)
HSLhsl(64, 73%, 32%)
HSVhsv(64, 85%, 56%)
CMYKcmyk(5.6%, 0%, 84.6%, 43.9%)
CIE-LABlab(56.93, -17.17, 56.57)
CIE-LCHlch(56.93, 59.12, 106.88°)
OKLaboklab(62.29% -0.0537 0.1221)
OKLCHoklch(62.29% 0.133 113.7)
XYZxyz(19.9596, 24.8542, 4.5048)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F16 #1E168F
analogous
#8F5B16 #878F16 #4B8F16
triadic
#878F16 #16878F #8F1687
tetradic
#878F16 #168F5B #1E168F #8F164B
square
#878F16 #168F5B #1E168F #8F164B
split-complementary
#878F16 #164B8F #5B168F
monochromatic
#232506 #555A0E #878F16 #B9C41E #D7E13E

Accessibility & contrast

On white

3.52
#878F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#878F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878F16
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878F16#FFFFFF#000000##000000
##878F161.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9A8A23
Tritanopia (blue-blind)
#91867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f16;
/* rgb */ color: rgb(135, 143, 22);
/* oklch */ color: oklch(62.3% 0.133 113.7);
Tailwind
colors: {
  custom: {
    50: '#aeaf61',
    500: '#878f16',
    950: '#000000',
  },
}
SCSS
$custom: #878f16;
$custom-light: #aeaf61;
$custom-dark: #000000;
JSON
{
  "hex": "#878f16",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 22
  },
  "hsl": {
    "h": 63.967,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.62286,
    "c": 0.13334,
    "h": 113.7
  },
  "luminance": 0.24854
}

Semantic roles & 50–950 ramp

primary
#878F16
secondary
#483FC1
accent
#38F044
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F16

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

Preview Lab → · Contrast checker → · Palette generator →

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