#878031#878031

#878031 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.100 H 104.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#878031
RGBrgb(135, 128, 49)
HSLhsl(55, 47%, 36%)
HSVhsv(55, 64%, 53%)
CMYKcmyk(0%, 5.2%, 63.7%, 47.1%)
CIE-LABlab(52.74, -7.77, 42.58)
CIE-LCHlch(52.74, 43.29, 100.34°)
OKLaboklab(58.99% -0.0247 0.0973)
OKLCHoklch(58.99% 0.1 104.3)
XYZxyz(18.2659, 20.8116, 5.9600)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878031 #313887
analogous
#875531 #878031 #638731
triadic
#878031 #318780 #803187
tetradic
#878031 #318755 #313887 #873163
square
#878031 #318755 #313887 #873163
split-complementary
#878031 #316387 #553187
monochromatic
#2D2B10 #5A5521 #878031 #B4AB41 #C9C16A

Accessibility & contrast

On white

4.07
#878031 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#878031 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878031
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878031#FFFFFF#000000##000000
##8780311.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C28
Deuteranopia (green-blind)
#8D8035
Tritanopia (blue-blind)
#91786F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #878031;
/* rgb */ color: rgb(135, 128, 49);
/* oklch */ color: oklch(59.0% 0.100 104.3);
Tailwind
colors: {
  custom: {
    50: '#aca46d',
    500: '#878031',
    950: '#000000',
  },
}
SCSS
$custom: #878031;
$custom-light: #aca46d;
$custom-dark: #000000;
JSON
{
  "hex": "#878031",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 49
  },
  "hsl": {
    "h": 55.116,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58994,
    "c": 0.10034,
    "h": 104.3
  },
  "luminance": 0.20811
}

Semantic roles & 50–950 ramp

primary
#878031
secondary
#646AB0
accent
#5CD651
background
#FAFAF6
surface
#F5F4EC
border
#CFCEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #878031

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

Preview Lab → · Contrast checker → · Palette generator →

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