#878223#878223

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

Color values

HEX#878223
RGBrgb(135, 130, 35)
HSLhsl(57, 59%, 33%)
HSVhsv(57, 74%, 53%)
CMYKcmyk(0%, 3.7%, 74.1%, 47.1%)
CIE-LABlab(53.21, -9.71, 49.04)
CIE-LCHlch(53.21, 49.99, 101.20°)
OKLaboklab(59.33% -0.0318 0.1085)
OKLCHoklch(59.33% 0.113 106.3)
XYZxyz(18.2784, 21.2382, 4.7263)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878223 #232887
analogous
#875023 #878223 #5A8723
triadic
#878223 #238782 #822387
tetradic
#878223 #238750 #232887 #87235A
square
#878223 #238750 #232887 #87235A
split-complementary
#878223 #235A87 #502387
monochromatic
#26240A #565316 #878223 #B8B130 #D2CC52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##878223#FFFFFF#000000##000000
##8782231.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)
#8D7D12
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#917970
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #878223;
/* rgb */ color: rgb(135, 130, 35);
/* oklch */ color: oklch(59.3% 0.113 106.3);
Tailwind
colors: {
  custom: {
    50: '#ada665',
    500: '#878223',
    950: '#000000',
  },
}
SCSS
$custom: #878223;
$custom-light: #ada665;
$custom-dark: #000000;
JSON
{
  "hex": "#878223",
  "rgb": {
    "r": 135,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 57,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5933,
    "c": 0.11301,
    "h": 106.3
  },
  "luminance": 0.21238
}

Semantic roles & 50–950 ramp

primary
#878223
secondary
#5055B6
accent
#4EE246
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878223

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

Preview Lab → · Contrast checker → · Palette generator →

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