#878C22#878C22

#878C22 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.6% C 0.124 H 112.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#878C22
RGBrgb(135, 140, 34)
HSLhsl(63, 61%, 34%)
HSVhsv(63, 76%, 55%)
CMYKcmyk(3.6%, 0%, 75.7%, 45.1%)
CIE-LABlab(56.11, -15.13, 52.17)
CIE-LCHlch(56.11, 54.32, 106.17°)
OKLaboklab(61.65% -0.047 0.1149)
OKLCHoklch(61.65% 0.124 112.3)
XYZxyz(19.6591, 24.0230, 5.1144)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C22 #27228C
analogous
#8C5C22 #878C22 #528C22
triadic
#878C22 #22878C #8C2287
tetradic
#878C22 #228C5C #27228C #8C2252
square
#878C22 #228C5C #27228C #8C2252
split-complementary
#878C22 #22528C #5C228C
monochromatic
#282A0A #585B16 #878C22 #B6BD2E #CFD553

Accessibility & contrast

On white

3.62
#878C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#878C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878C22
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878C22#FFFFFF#000000##000000
##878C221.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850B
Deuteranopia (green-blind)
#97882B
Tritanopia (blue-blind)
#918378
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878c22;
/* rgb */ color: rgb(135, 140, 34);
/* oklch */ color: oklch(61.6% 0.124 112.3);
Tailwind
colors: {
  custom: {
    50: '#adad66',
    500: '#878c22',
    950: '#000000',
  },
}
SCSS
$custom: #878c22;
$custom-light: #adad66;
$custom-dark: #000000;
JSON
{
  "hex": "#878c22",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 62.83,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61646,
    "c": 0.12413,
    "h": 112.3
  },
  "luminance": 0.24023
}

Semantic roles & 50–950 ramp

primary
#878C22
secondary
#5651B9
accent
#44E44B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878C22

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

Preview Lab → · Contrast checker → · Palette generator →

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