#878E27#878E27

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

Color values

HEX#878E27
RGBrgb(135, 142, 39)
HSLhsl(64, 57%, 35%)
HSVhsv(64, 73%, 56%)
CMYKcmyk(4.9%, 0%, 72.5%, 44.3%)
CIE-LABlab(56.73, -15.93, 50.92)
CIE-LCHlch(56.73, 53.35, 107.37°)
OKLaboklab(62.15% -0.0488 0.1132)
OKLCHoklch(62.15% 0.123 113.3)
XYZxyz(20.0315, 24.6438, 5.6206)
Luminance0.2464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E27 #2E278E
analogous
#8E6227 #878E27 #538E27
triadic
#878E27 #27878E #8E2787
tetradic
#878E27 #278E62 #2E278E #8E2753
square
#878E27 #278E62 #2E278E #8E2753
split-complementary
#878E27 #27538E #62278E
monochromatic
#2C2E0D #595E1A #878E27 #B5BE34 #CAD25D

Accessibility & contrast

On white

3.54
#878E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#878E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E27
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E27#FFFFFF#000000##000000
##878E271.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998715
Deuteranopia (green-blind)
#99892F
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e27;
/* rgb */ color: rgb(135, 142, 39);
/* oklch */ color: oklch(62.1% 0.123 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae69',
    500: '#878e27',
    950: '#000000',
  },
}
SCSS
$custom: #878e27;
$custom-light: #adae69;
$custom-dark: #000000;
JSON
{
  "hex": "#878e27",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 64.078,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62149,
    "c": 0.12324,
    "h": 113.3
  },
  "luminance": 0.24643
}

Semantic roles & 50–950 ramp

primary
#878E27
secondary
#6059B8
accent
#48E052
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #878E27

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

Preview Lab → · Contrast checker → · Palette generator →

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