#878331#878331

#878331 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.103 H 106.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#878331
RGBrgb(135, 131, 49)
HSLhsl(57, 47%, 36%)
HSVhsv(57, 64%, 53%)
CMYKcmyk(0%, 3%, 63.7%, 47.1%)
CIE-LABlab(53.61, -9.41, 43.51)
CIE-LCHlch(53.61, 44.52, 102.21°)
OKLaboklab(59.68% -0.0294 0.0992)
OKLCHoklch(59.68% 0.103 106.5)
XYZxyz(18.6630, 21.6059, 6.0924)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878331 #313587
analogous
#875831 #878331 #608731
triadic
#878331 #318783 #833187
tetradic
#878331 #318758 #313587 #873160
square
#878331 #318758 #313587 #873160
split-complementary
#878331 #316087 #583187
monochromatic
#2D2C10 #5A5721 #878331 #B4AF41 #C9C46A

Accessibility & contrast

On white

3.95
#878331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#878331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878331
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878331#FFFFFF#000000##000000
##8783311.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E27
Deuteranopia (green-blind)
#908236
Tritanopia (blue-blind)
#917B72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #878331;
/* rgb */ color: rgb(135, 131, 49);
/* oklch */ color: oklch(59.7% 0.103 106.5);
Tailwind
colors: {
  custom: {
    50: '#aca66d',
    500: '#878331',
    950: '#000000',
  },
}
SCSS
$custom: #878331;
$custom-light: #aca66d;
$custom-dark: #000000;
JSON
{
  "hex": "#878331",
  "rgb": {
    "r": 135,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 57.209,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59681,
    "c": 0.10348,
    "h": 106.5
  },
  "luminance": 0.21605
}

Semantic roles & 50–950 ramp

primary
#878331
secondary
#6467B0
accent
#58D651
background
#FAFAF6
surface
#F5F4EC
border
#CFCEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #878331

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

Preview Lab → · Contrast checker → · Palette generator →

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