#878E1C#878E1C

#878E1C is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.1% C 0.130 H 113.3°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#878E1C
RGBrgb(135, 142, 28)
HSLhsl(64, 67%, 33%)
HSVhsv(64, 80%, 56%)
CMYKcmyk(4.9%, 0%, 80.3%, 44.3%)
CIE-LABlab(56.67, -16.44, 54.65)
CIE-LCHlch(56.67, 57.07, 106.74°)
OKLaboklab(62.08% -0.0512 0.119)
OKLCHoklch(62.08% 0.13 113.3)
XYZxyz(19.8749, 24.5812, 4.7961)
Luminance0.2458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E1C #231C8E
analogous
#8E5C1C #878E1C #4E8E1C
triadic
#878E1C #1C878E #8E1C87
tetradic
#878E1C #1C8E5C #231C8E #8E1C4E
square
#878E1C #1C8E5C #231C8E #8E1C4E
split-complementary
#878E1C #1C4E8E #5C1C8E
monochromatic
#262808 #565B12 #878E1C #B8C126 #D2DB49

Accessibility & contrast

On white

3.55
#878E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#878E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878E1C
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878E1C#FFFFFF#000000##000000
##878E1C1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#918579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e1c;
/* rgb */ color: rgb(135, 142, 28);
/* oklch */ color: oklch(62.1% 0.130 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae63',
    500: '#878e1c',
    950: '#000000',
  },
}
SCSS
$custom: #878e1c;
$custom-light: #adae63;
$custom-dark: #000000;
JSON
{
  "hex": "#878e1c",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 63.684,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.6208,
    "c": 0.12958,
    "h": 113.3
  },
  "luminance": 0.24581
}

Semantic roles & 50–950 ramp

primary
#878E1C
secondary
#5049BD
accent
#3EEA48
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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