#878321#878321

#878321 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.5% C 0.115 H 107.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#878321
RGBrgb(135, 131, 33)
HSLhsl(58, 61%, 33%)
HSVhsv(58, 76%, 53%)
CMYKcmyk(0%, 3%, 75.6%, 47.1%)
CIE-LABlab(53.49, -10.35, 50.05)
CIE-LCHlch(53.49, 51.11, 101.69°)
OKLaboklab(59.55% -0.0338 0.1102)
OKLCHoklch(59.55% 0.115 107)
XYZxyz(18.3832, 21.4939, 4.6189)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878321 #212587
analogous
#875021 #878321 #588721
triadic
#878321 #218783 #832187
tetradic
#878321 #218750 #212587 #872158
square
#878321 #218750 #212587 #872158
split-complementary
#878321 #215887 #502187
monochromatic
#252409 #565315 #878321 #B8B32D #D4CF4F

Accessibility & contrast

On white

3.96
#878321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#878321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878321
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878321#FFFFFF#000000##000000
##8783211.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0D
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#917A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #878321;
/* rgb */ color: rgb(135, 131, 33);
/* oklch */ color: oklch(59.5% 0.115 107.0);
Tailwind
colors: {
  custom: {
    50: '#ada664',
    500: '#878321',
    950: '#000000',
  },
}
SCSS
$custom: #878321;
$custom-light: #ada664;
$custom-dark: #000000;
JSON
{
  "hex": "#878321",
  "rgb": {
    "r": 135,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 57.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59546,
    "c": 0.11527,
    "h": 107
  },
  "luminance": 0.21493
}

Semantic roles & 50–950 ramp

primary
#878321
secondary
#4D51B7
accent
#4AE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878321

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

Preview Lab → · Contrast checker → · Palette generator →

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