#878918#878918

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

Color values

HEX#878918
RGBrgb(135, 137, 24)
HSLhsl(61, 70%, 32%)
HSVhsv(61, 82%, 54%)
CMYKcmyk(1.5%, 0%, 82.5%, 46.3%)
CIE-LABlab(55.18, -13.95, 54.53)
CIE-LCHlch(55.18, 56.28, 104.35°)
OKLaboklab(60.89% -0.0446 0.118)
OKLCHoklch(60.89% 0.126 110.7)
XYZxyz(19.1029, 23.1087, 4.3181)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878918 #1A1889
analogous
#895318 #878918 #4F8918
triadic
#878918 #188789 #891887
tetradic
#878918 #188953 #1A1889 #89184F
square
#878918 #188953 #1A1889 #89184F
split-complementary
#878918 #184F89 #531889
monochromatic
#202106 #54550F #878918 #BABD21 #DADD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #878918;
/* rgb */ color: rgb(135, 137, 24);
/* oklch */ color: oklch(60.9% 0.126 110.7);
Tailwind
colors: {
  custom: {
    50: '#aeab61',
    500: '#878918',
    950: '#000000',
  },
}
SCSS
$custom: #878918;
$custom-light: #aeab61;
$custom-dark: #000000;
JSON
{
  "hex": "#878918",
  "rgb": {
    "r": 135,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 61.062,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60888,
    "c": 0.12617,
    "h": 110.7
  },
  "luminance": 0.23108
}

Semantic roles & 50–950 ramp

primary
#878918
secondary
#4240BD
accent
#3BED3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878918

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

Preview Lab → · Contrast checker → · Palette generator →

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