#878B18#878B18

#878B18 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.128 H 111.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#878B18
RGBrgb(135, 139, 24)
HSLhsl(62, 71%, 32%)
HSVhsv(62, 83%, 55%)
CMYKcmyk(2.9%, 0%, 82.7%, 45.5%)
CIE-LABlab(55.77, -15.01, 55.04)
CIE-LCHlch(55.77, 57.04, 105.25°)
OKLaboklab(61.36% -0.0475 0.1191)
OKLCHoklch(61.36% 0.128 111.8)
XYZxyz(19.3899, 23.6826, 4.4138)
Luminance0.2368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878B18 #1C188B
analogous
#8B5618 #878B18 #4E8B18
triadic
#878B18 #18878B #8B1887
tetradic
#878B18 #188B56 #1C188B #8B184E
square
#878B18 #188B56 #1C188B #8B184E
split-complementary
#878B18 #184E8B #56188B
monochromatic
#222306 #54570F #878B18 #BABF21 #D8DE3F

Accessibility & contrast

On white

3.66
#878B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#878B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878B18
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878B18#FFFFFF#000000##000000
##878B181.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#918276
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #878b18;
/* rgb */ color: rgb(135, 139, 24);
/* oklch */ color: oklch(61.4% 0.128 111.8);
Tailwind
colors: {
  custom: {
    50: '#aeac61',
    500: '#878b18',
    950: '#000000',
  },
}
SCSS
$custom: #878b18;
$custom-light: #aeac61;
$custom-dark: #000000;
JSON
{
  "hex": "#878b18",
  "rgb": {
    "r": 135,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 62.087,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61356,
    "c": 0.12825,
    "h": 111.8
  },
  "luminance": 0.23682
}

Semantic roles & 50–950 ramp

primary
#878B18
secondary
#4540BE
accent
#3AED41
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878B18

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

Preview Lab → · Contrast checker → · Palette generator →

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