#878915#878915

#878915 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#878915
RGBrgb(135, 137, 21)
HSLhsl(61, 73%, 31%)
HSVhsv(61, 85%, 54%)
CMYKcmyk(1.5%, 0%, 84.7%, 46.3%)
CIE-LABlab(55.17, -14.05, 55.33)
CIE-LCHlch(55.17, 57.09, 104.24°)
OKLaboklab(60.88% -0.0451 0.1192)
OKLCHoklch(60.88% 0.127 110.7)
XYZxyz(19.0734, 23.0969, 4.1627)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878915 #171589
analogous
#895115 #878915 #4D8915
triadic
#878915 #158789 #891587
tetradic
#878915 #158951 #171589 #89154D
square
#878915 #158951 #171589 #89154D
split-complementary
#878915 #154D89 #511589
monochromatic
#1E1F05 #53540D #878915 #BBBE1D #DEE038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878915#FFFFFF#000000##000000
##8789151.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)
#958521
Tritanopia (blue-blind)
#918075
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #878915;
/* rgb */ color: rgb(135, 137, 21);
/* oklch */ color: oklch(60.9% 0.127 110.7);
Tailwind
colors: {
  custom: {
    50: '#aeab60',
    500: '#878915',
    950: '#000000',
  },
}
SCSS
$custom: #878915;
$custom-light: #aeab60;
$custom-dark: #000000;
JSON
{
  "hex": "#878915",
  "rgb": {
    "r": 135,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 61.034,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.12745,
    "h": 110.7
  },
  "luminance": 0.23096
}

Semantic roles & 50–950 ramp

primary
#878915
secondary
#3F3DBD
accent
#38F03B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878915

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

Preview Lab → · Contrast checker → · Palette generator →

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