#878E28#878E28

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

Color values

HEX#878E28
RGBrgb(135, 142, 40)
HSLhsl(64, 56%, 36%)
HSVhsv(64, 72%, 56%)
CMYKcmyk(4.9%, 0%, 71.8%, 44.3%)
CIE-LABlab(56.73, -15.87, 50.55)
CIE-LCHlch(56.73, 52.98, 107.43°)
OKLaboklab(62.16% -0.0485 0.1126)
OKLCHoklch(62.16% 0.123 113.3)
XYZxyz(20.0483, 24.6505, 5.7090)
Luminance0.2465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E28 #2F288E
analogous
#8E6228 #878E28 #548E28
triadic
#878E28 #28878E #8E2887
tetradic
#878E28 #288E62 #2F288E #8E2854
square
#878E28 #288E62 #2F288E #8E2854
split-complementary
#878E28 #28548E #62288E
monochromatic
#2C2F0D #5A5E1B #878E28 #B4BE35 #CAD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E28#FFFFFF#000000##000000
##878E281.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)
#998717
Deuteranopia (green-blind)
#998930
Tritanopia (blue-blind)
#90857A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e28;
/* rgb */ color: rgb(135, 142, 40);
/* oklch */ color: oklch(62.2% 0.123 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae69',
    500: '#878e28',
    950: '#000000',
  },
}
SCSS
$custom: #878e28;
$custom-light: #adae69;
$custom-dark: #000000;
JSON
{
  "hex": "#878e28",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 64.118,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.62156,
    "c": 0.12256,
    "h": 113.3
  },
  "luminance": 0.2465
}

Semantic roles & 50–950 ramp

primary
#878E28
secondary
#615BB7
accent
#48DF53
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #878E28

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

Preview Lab → · Contrast checker → · Palette generator →

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