#878E16#878E16

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

Color values

HEX#878E16
RGBrgb(135, 142, 22)
HSLhsl(64, 73%, 32%)
HSVhsv(64, 85%, 56%)
CMYKcmyk(4.9%, 0%, 84.5%, 44.3%)
CIE-LABlab(56.64, -16.65, 56.32)
CIE-LCHlch(56.64, 58.73, 106.47°)
OKLaboklab(62.05% -0.0522 0.1215)
OKLCHoklch(62.05% 0.132 113.3)
XYZxyz(19.8102, 24.5553, 4.4550)
Luminance0.2455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E16 #1D168E
analogous
#8E5916 #878E16 #4B8E16
triadic
#878E16 #16878E #8E1687
tetradic
#878E16 #168E59 #1D168E #8E164B
square
#878E16 #168E59 #1D168E #8E164B
split-complementary
#878E16 #164B8E #59168E
monochromatic
#222406 #55590E #878E16 #B9C31E #D7E13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878e16;
/* rgb */ color: rgb(135, 142, 22);
/* oklch */ color: oklch(62.1% 0.132 113.3);
Tailwind
colors: {
  custom: {
    50: '#aeae61',
    500: '#878e16',
    950: '#000000',
  },
}
SCSS
$custom: #878e16;
$custom-light: #aeae61;
$custom-dark: #000000;
JSON
{
  "hex": "#878e16",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 63.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.62051,
    "c": 0.13227,
    "h": 113.3
  },
  "luminance": 0.24555
}

Semantic roles & 50–950 ramp

primary
#878E16
secondary
#463FC1
accent
#38F043
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878E16

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

Preview Lab → · Contrast checker → · Palette generator →

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