#878A1E#878A1E

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

Color values

HEX#878A1E
RGBrgb(135, 138, 30)
HSLhsl(62, 64%, 33%)
HSVhsv(62, 78%, 54%)
CMYKcmyk(2.2%, 0%, 78.3%, 45.9%)
CIE-LABlab(55.50, -14.25, 52.97)
CIE-LCHlch(55.50, 54.85, 105.06°)
OKLaboklab(61.15% -0.0449 0.1158)
OKLCHoklch(61.15% 0.124 111.2)
XYZxyz(19.3152, 23.4221, 4.7315)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878A1E #211E8A
analogous
#8A571E #878A1E #518A1E
triadic
#878A1E #1E878A #8A1E87
tetradic
#878A1E #1E8A57 #211E8A #8A1E51
square
#878A1E #1E8A57 #211E8A #8A1E51
split-complementary
#878A1E #1E518A #571E8A
monochromatic
#252508 #565813 #878A1E #B8BC29 #D4D84B

Accessibility & contrast

On white

3.69
#878A1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##878A1E#FFFFFF#000000##000000
##878A1E1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878a1e;
/* rgb */ color: rgb(135, 138, 30);
/* oklch */ color: oklch(61.2% 0.124 111.2);
Tailwind
colors: {
  custom: {
    50: '#adab64',
    500: '#878a1e',
    950: '#000000',
  },
}
SCSS
$custom: #878a1e;
$custom-light: #adab64;
$custom-dark: #000000;
JSON
{
  "hex": "#878a1e",
  "rgb": {
    "r": 135,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 61.667,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61153,
    "c": 0.12424,
    "h": 111.2
  },
  "luminance": 0.23422
}

Semantic roles & 50–950 ramp

primary
#878A1E
secondary
#4D4ABA
accent
#41E745
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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