#878022#878022

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

Color values

HEX#878022
RGBrgb(135, 128, 34)
HSLhsl(56, 60%, 33%)
HSVhsv(56, 75%, 53%)
CMYKcmyk(0%, 5.2%, 74.8%, 47.1%)
CIE-LABlab(52.63, -8.67, 48.86)
CIE-LCHlch(52.63, 49.62, 100.06°)
OKLaboklab(58.86% -0.0289 0.1079)
OKLCHoklch(58.86% 0.112 105)
XYZxyz(18.0003, 20.7054, 4.5614)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878022 #222987
analogous
#874E22 #878022 #5B8722
triadic
#878022 #228780 #802287
tetradic
#878022 #22874E #222987 #87225B
square
#878022 #22874E #222987 #87225B
split-complementary
#878022 #225B87 #4E2287
monochromatic
#252309 #565216 #878022 #B8AE2E #D3CA50

Accessibility & contrast

On white

4.08
#878022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##878022#FFFFFF#000000##000000
##8780221.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #878022;
/* rgb */ color: rgb(135, 128, 34);
/* oklch */ color: oklch(58.9% 0.112 105.0);
Tailwind
colors: {
  custom: {
    50: '#ada464',
    500: '#878022',
    950: '#000000',
  },
}
SCSS
$custom: #878022;
$custom-light: #ada464;
$custom-dark: #000000;
JSON
{
  "hex": "#878022",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 55.842,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58863,
    "c": 0.1117,
    "h": 105
  },
  "luminance": 0.20705
}

Semantic roles & 50–950 ramp

primary
#878022
secondary
#4E55B7
accent
#50E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878022

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

Preview Lab → · Contrast checker → · Palette generator →

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