#878E1F#878E1F

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

Color values

HEX#878E1F
RGBrgb(135, 142, 31)
HSLhsl(64, 64%, 34%)
HSVhsv(64, 78%, 56%)
CMYKcmyk(4.9%, 0%, 78.2%, 44.3%)
CIE-LABlab(56.68, -16.31, 53.72)
CIE-LCHlch(56.68, 56.14, 106.89°)
OKLaboklab(62.1% -0.0506 0.1176)
OKLCHoklch(62.1% 0.128 113.3)
XYZxyz(19.9126, 24.5963, 4.9947)
Luminance0.2460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878E1F #261F8E
analogous
#8E5E1F #878E1F #508E1F
triadic
#878E1F #1F878E #8E1F87
tetradic
#878E1F #1F8E5E #261F8E #8E1F50
square
#878E1F #1F8E5E #261F8E #8E1F50
split-complementary
#878E1F #1F508E #5E1F8E
monochromatic
#272A09 #575C14 #878E1F #B7C02A #D0D94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878E1F#FFFFFF#000000##000000
##878E1F1.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)
#998702
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#908579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #878e1f;
/* rgb */ color: rgb(135, 142, 31);
/* oklch */ color: oklch(62.1% 0.128 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae65',
    500: '#878e1f',
    950: '#000000',
  },
}
SCSS
$custom: #878e1f;
$custom-light: #adae65;
$custom-dark: #000000;
JSON
{
  "hex": "#878e1f",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 63.784,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.62096,
    "c": 0.12802,
    "h": 113.3
  },
  "luminance": 0.24596
}

Semantic roles & 50–950 ramp

primary
#878E1F
secondary
#544DBB
accent
#41E74B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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