#878E23#878E23

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

Color values

HEX#878E23
RGBrgb(135, 142, 35)
HSLhsl(64, 60%, 35%)
HSVhsv(64, 75%, 56%)
CMYKcmyk(4.9%, 0%, 75.4%, 44.3%)
CIE-LABlab(56.70, -16.13, 52.37)
CIE-LCHlch(56.70, 54.80, 107.12°)
OKLaboklab(62.12% -0.0497 0.1155)
OKLCHoklch(62.12% 0.126 113.3)
XYZxyz(19.9687, 24.6187, 5.2898)
Luminance0.2462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E23 #2A238E
analogous
#8E5F23 #878E23 #528E23
triadic
#878E23 #23878E #8E2387
tetradic
#878E23 #238E5F #2A238E #8E2352
square
#878E23 #238E5F #2A238E #8E2352
split-complementary
#878E23 #23528E #5F238E
monochromatic
#2A2C0B #585D17 #878E23 #B6BF2F #CDD556

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E23#FFFFFF#000000##000000
##878E231.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)
#99870C
Deuteranopia (green-blind)
#99892C
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e23;
/* rgb */ color: rgb(135, 142, 35);
/* oklch */ color: oklch(62.1% 0.126 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae67',
    500: '#878e23',
    950: '#000000',
  },
}
SCSS
$custom: #878e23;
$custom-light: #adae67;
$custom-dark: #000000;
JSON
{
  "hex": "#878e23",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 63.925,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62121,
    "c": 0.12575,
    "h": 113.3
  },
  "luminance": 0.24618
}

Semantic roles & 50–950 ramp

primary
#878E23
secondary
#5A53B9
accent
#44E44F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E23

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

Preview Lab → · Contrast checker → · Palette generator →

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