#878E21#878E21

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

Color values

HEX#878E21
RGBrgb(135, 142, 33)
HSLhsl(64, 62%, 34%)
HSVhsv(64, 77%, 56%)
CMYKcmyk(4.9%, 0%, 76.8%, 44.3%)
CIE-LABlab(56.69, -16.23, 53.06)
CIE-LCHlch(56.69, 55.48, 107.00°)
OKLaboklab(62.11% -0.0502 0.1166)
OKLCHoklch(62.11% 0.127 113.3)
XYZxyz(19.9398, 24.6071, 5.1378)
Luminance0.2461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E21 #28218E
analogous
#8E5F21 #878E21 #518E21
triadic
#878E21 #21878E #8E2187
tetradic
#878E21 #218E5F #28218E #8E2151
square
#878E21 #218E5F #28218E #8E2151
split-complementary
#878E21 #21518E #5F218E
monochromatic
#292B0A #585C15 #878E21 #B6C02D #CED752

Accessibility & contrast

On white

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

On black

5.92
#878E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E21
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E21#FFFFFF#000000##000000
##878E211.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#99892A
Tritanopia (blue-blind)
#908579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e21;
/* rgb */ color: rgb(135, 142, 33);
/* oklch */ color: oklch(62.1% 0.127 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae66',
    500: '#878e21',
    950: '#000000',
  },
}
SCSS
$custom: #878e21;
$custom-light: #adae66;
$custom-dark: #000000;
JSON
{
  "hex": "#878e21",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 63.853,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62108,
    "c": 0.12692,
    "h": 113.3
  },
  "luminance": 0.24607
}

Semantic roles & 50–950 ramp

primary
#878E21
secondary
#5750BA
accent
#42E54D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E21

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

Preview Lab → · Contrast checker → · Palette generator →

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