#878A18#878A18

#878A18 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.1% C 0.127 H 111.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#878A18
RGBrgb(135, 138, 24)
HSLhsl(62, 70%, 32%)
HSVhsv(62, 83%, 54%)
CMYKcmyk(2.2%, 0%, 82.6%, 45.9%)
CIE-LABlab(55.48, -14.48, 54.78)
CIE-LCHlch(55.48, 56.66, 104.80°)
OKLaboklab(61.12% -0.0461 0.1186)
OKLCHoklch(61.12% 0.127 111.2)
XYZxyz(19.2457, 23.3943, 4.3657)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878A18 #1B188A
analogous
#8A5418 #878A18 #4E8A18
triadic
#878A18 #18878A #8A1887
tetradic
#878A18 #188A54 #1B188A #8A184E
square
#878A18 #188A54 #1B188A #8A184E
split-complementary
#878A18 #184E8A #54188A
monochromatic
#212206 #54560F #878A18 #BABE21 #D9DE3F

Accessibility & contrast

On white

3.70
#878A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#878A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878A18
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878A18#FFFFFF#000000##000000
##878A181.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#918176
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #878a18;
/* rgb */ color: rgb(135, 138, 24);
/* oklch */ color: oklch(61.1% 0.127 111.2);
Tailwind
colors: {
  custom: {
    50: '#aeab61',
    500: '#878a18',
    950: '#000000',
  },
}
SCSS
$custom: #878a18;
$custom-light: #aeab61;
$custom-dark: #000000;
JSON
{
  "hex": "#878a18",
  "rgb": {
    "r": 135,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 61.579,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61122,
    "c": 0.12721,
    "h": 111.2
  },
  "luminance": 0.23394
}

Semantic roles & 50–950 ramp

primary
#878A18
secondary
#4440BD
accent
#3BED3F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878A18

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

Preview Lab → · Contrast checker → · Palette generator →

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