#878818#878818

#878818 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.7% C 0.125 H 110.2°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#878818
RGBrgb(135, 136, 24)
HSLhsl(61, 70%, 31%)
HSVhsv(61, 82%, 53%)
CMYKcmyk(0.7%, 0%, 82.4%, 46.7%)
CIE-LABlab(54.89, -13.41, 54.27)
CIE-LCHlch(54.89, 55.91, 103.88°)
OKLaboklab(60.66% -0.0431 0.1175)
OKLCHoklch(60.66% 0.125 110.2)
XYZxyz(18.9614, 22.8257, 4.2710)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878818 #191888
analogous
#885118 #878818 #4F8818
triadic
#878818 #188788 #881887
tetradic
#878818 #188851 #191888 #88184F
square
#878818 #188851 #191888 #88184F
split-complementary
#878818 #184F88 #511888
monochromatic
#202006 #53540F #878818 #BBBC21 #DBDD3E

Accessibility & contrast

On white

3.77
#878818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#878818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878818
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878818#FFFFFF#000000##000000
##8788181.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#917F74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #878818;
/* rgb */ color: rgb(135, 136, 24);
/* oklch */ color: oklch(60.7% 0.125 110.2);
Tailwind
colors: {
  custom: {
    50: '#aeaa61',
    500: '#878818',
    950: '#000000',
  },
}
SCSS
$custom: #878818;
$custom-light: #aeaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#878818",
  "rgb": {
    "r": 135,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 60.536,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60655,
    "c": 0.12514,
    "h": 110.2
  },
  "luminance": 0.22825
}

Semantic roles & 50–950 ramp

primary
#878818
secondary
#4140BC
accent
#3BED3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878818

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

Preview Lab → · Contrast checker → · Palette generator →

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