#878020#878020

#878020 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.8% C 0.113 H 105.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#878020
RGBrgb(135, 128, 32)
HSLhsl(56, 62%, 33%)
HSVhsv(56, 76%, 53%)
CMYKcmyk(0%, 5.2%, 76.3%, 47.1%)
CIE-LABlab(52.61, -8.76, 49.59)
CIE-LCHlch(52.61, 50.36, 100.02°)
OKLaboklab(58.85% -0.0294 0.109)
OKLCHoklch(58.85% 0.113 105.1)
XYZxyz(17.9723, 20.6942, 4.4139)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878020 #202787
analogous
#874C20 #878020 #5B8720
triadic
#878020 #208780 #802087
tetradic
#878020 #20874C #202787 #87205B
square
#878020 #20874C #202787 #87205B
split-complementary
#878020 #205B87 #4C2087
monochromatic
#242209 #565114 #878020 #B8AF2C #D5CB4D

Accessibility & contrast

On white

4.09
#878020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#878020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878020
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878020#FFFFFF#000000##000000
##8780201.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0D
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#91776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #878020;
/* rgb */ color: rgb(135, 128, 32);
/* oklch */ color: oklch(58.8% 0.113 105.1);
Tailwind
colors: {
  custom: {
    50: '#ada463',
    500: '#878020',
    950: '#000000',
  },
}
SCSS
$custom: #878020;
$custom-light: #ada463;
$custom-dark: #000000;
JSON
{
  "hex": "#878020",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 55.922,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58849,
    "c": 0.11294,
    "h": 105.1
  },
  "luminance": 0.20694
}

Semantic roles & 50–950 ramp

primary
#878020
secondary
#4B53B8
accent
#4EE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878020

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

Preview Lab → · Contrast checker → · Palette generator →

#878020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva