#878221#878221

#878221 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.3% C 0.114 H 106.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#878221
RGBrgb(135, 130, 33)
HSLhsl(57, 61%, 33%)
HSVhsv(57, 76%, 53%)
CMYKcmyk(0%, 3.7%, 75.6%, 47.1%)
CIE-LABlab(53.20, -9.81, 49.78)
CIE-LCHlch(53.20, 50.73, 101.15°)
OKLaboklab(59.32% -0.0323 0.1096)
OKLCHoklch(59.32% 0.114 106.4)
XYZxyz(18.2496, 21.2266, 4.5744)
Luminance0.2123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878221 #212687
analogous
#874F21 #878221 #598721
triadic
#878221 #218782 #822187
tetradic
#878221 #21874F #212687 #872159
square
#878221 #21874F #212687 #872159
split-complementary
#878221 #215987 #4F2187
monochromatic
#252309 #565315 #878221 #B8B12D #D4CD4F

Accessibility & contrast

On white

4.00
#878221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#878221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878221
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878221#FFFFFF#000000##000000
##8782211.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#91796F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #878221;
/* rgb */ color: rgb(135, 130, 33);
/* oklch */ color: oklch(59.3% 0.114 106.4);
Tailwind
colors: {
  custom: {
    50: '#ada664',
    500: '#878221',
    950: '#000000',
  },
}
SCSS
$custom: #878221;
$custom-light: #ada664;
$custom-dark: #000000;
JSON
{
  "hex": "#878221",
  "rgb": {
    "r": 135,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 57.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59316,
    "c": 0.11428,
    "h": 106.4
  },
  "luminance": 0.21226
}

Semantic roles & 50–950 ramp

primary
#878221
secondary
#4D52B7
accent
#4CE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878221

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

Preview Lab → · Contrast checker → · Palette generator →

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