#878917#878917

#878917 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.9% C 0.127 H 110.7°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#878917
RGBrgb(135, 137, 23)
HSLhsl(61, 71%, 31%)
HSVhsv(61, 83%, 54%)
CMYKcmyk(1.5%, 0%, 83.2%, 46.3%)
CIE-LABlab(55.18, -13.98, 54.80)
CIE-LCHlch(55.18, 56.56, 104.31°)
OKLaboklab(60.88% -0.0448 0.1184)
OKLCHoklch(60.88% 0.127 110.7)
XYZxyz(19.0927, 23.1046, 4.2643)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878917 #191789
analogous
#895217 #878917 #4E8917
triadic
#878917 #178789 #891787
tetradic
#878917 #178952 #191789 #89174E
square
#878917 #178952 #191789 #89174E
split-complementary
#878917 #174E89 #521789
monochromatic
#202005 #53550E #878917 #BBBD20 #DBDE3C

Accessibility & contrast

On white

3.74
#878917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#878917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878917
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878917#FFFFFF#000000##000000
##8789171.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#958622
Tritanopia (blue-blind)
#918075
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #878917;
/* rgb */ color: rgb(135, 137, 23);
/* oklch */ color: oklch(60.9% 0.127 110.7);
Tailwind
colors: {
  custom: {
    50: '#aeab61',
    500: '#878917',
    950: '#000000',
  },
}
SCSS
$custom: #878917;
$custom-light: #aeab61;
$custom-dark: #000000;
JSON
{
  "hex": "#878917",
  "rgb": {
    "r": 135,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 61.053,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60883,
    "c": 0.12661,
    "h": 110.7
  },
  "luminance": 0.23104
}

Semantic roles & 50–950 ramp

primary
#878917
secondary
#413FBD
accent
#3AEE3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878917

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

Preview Lab → · Contrast checker → · Palette generator →

#878917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva