#878B22#878B22

#878B22 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.123 H 111.7°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#878B22
RGBrgb(135, 139, 34)
HSLhsl(62, 61%, 34%)
HSVhsv(62, 76%, 55%)
CMYKcmyk(2.9%, 0%, 75.5%, 45.5%)
CIE-LABlab(55.82, -14.60, 51.89)
CIE-LCHlch(55.82, 53.91, 105.71°)
OKLaboklab(61.41% -0.0456 0.1143)
OKLCHoklch(61.41% 0.123 111.7)
XYZxyz(19.5137, 23.7321, 5.0659)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B22 #26228B
analogous
#8B5B22 #878B22 #538B22
triadic
#878B22 #22878B #8B2287
tetradic
#878B22 #228B5B #26228B #8B2253
square
#878B22 #228B5B #26228B #8B2253
split-complementary
#878B22 #22538B #5B228B
monochromatic
#27290A #575A16 #878B22 #B7BC2E #D0D553

Accessibility & contrast

On white

3.65
#878B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#878B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878B22
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878B22#FFFFFF#000000##000000
##878B221.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840B
Deuteranopia (green-blind)
#97872B
Tritanopia (blue-blind)
#918277
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878b22;
/* rgb */ color: rgb(135, 139, 34);
/* oklch */ color: oklch(61.4% 0.123 111.7);
Tailwind
colors: {
  custom: {
    50: '#adac66',
    500: '#878b22',
    950: '#000000',
  },
}
SCSS
$custom: #878b22;
$custom-light: #adac66;
$custom-dark: #000000;
JSON
{
  "hex": "#878b22",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 62.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61412,
    "c": 0.12305,
    "h": 111.7
  },
  "luminance": 0.23732
}

Semantic roles & 50–950 ramp

primary
#878B22
secondary
#5450B8
accent
#44E44A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878B22

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

Preview Lab → · Contrast checker → · Palette generator →

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