#878C23#878C23

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

Color values

HEX#878C23
RGBrgb(135, 140, 35)
HSLhsl(63, 60%, 34%)
HSVhsv(63, 75%, 55%)
CMYKcmyk(3.6%, 0%, 75%, 45.1%)
CIE-LABlab(56.12, -15.08, 51.82)
CIE-LCHlch(56.12, 53.97, 106.22°)
OKLaboklab(61.65% -0.0468 0.1143)
OKLCHoklch(61.65% 0.124 112.3)
XYZxyz(19.6738, 24.0289, 5.1915)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878C23 #28238C
analogous
#8C5D23 #878C23 #538C23
triadic
#878C23 #23878C #8C2387
tetradic
#878C23 #238C5D #28238C #8C2353
square
#878C23 #238C5D #28238C #8C2353
split-complementary
#878C23 #23538C #5D238C
monochromatic
#292A0B #585B17 #878C23 #B6BD2F #CED455

Accessibility & contrast

On white

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

On black

5.81
#878C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878C23
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878C23#FFFFFF#000000##000000
##878C231.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878c23;
/* rgb */ color: rgb(135, 140, 35);
/* oklch */ color: oklch(61.7% 0.124 112.3);
Tailwind
colors: {
  custom: {
    50: '#adad66',
    500: '#878c23',
    950: '#000000',
  },
}
SCSS
$custom: #878c23;
$custom-light: #adad66;
$custom-dark: #000000;
JSON
{
  "hex": "#878c23",
  "rgb": {
    "r": 135,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 62.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61652,
    "c": 0.12354,
    "h": 112.3
  },
  "luminance": 0.24028
}

Semantic roles & 50–950 ramp

primary
#878C23
secondary
#5752B8
accent
#45E34C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878C23

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

Preview Lab → · Contrast checker → · Palette generator →

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