#878028#878028

#878028 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.108 H 104.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#878028
RGBrgb(135, 128, 40)
HSLhsl(56, 54%, 34%)
HSVhsv(56, 70%, 53%)
CMYKcmyk(0%, 5.2%, 70.4%, 47.1%)
CIE-LABlab(52.67, -8.35, 46.50)
CIE-LCHlch(52.67, 47.24, 100.17°)
OKLaboklab(58.91% -0.0274 0.104)
OKLCHoklch(58.91% 0.108 104.8)
XYZxyz(18.0946, 20.7431, 5.0578)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878028 #282F87
analogous
#875128 #878028 #5F8728
triadic
#878028 #288780 #802887
tetradic
#878028 #288751 #282F87 #87285F
square
#878028 #288751 #282F87 #87285F
split-complementary
#878028 #285F87 #512887
monochromatic
#29260C #58531A #878028 #B6AD36 #CEC65B

Accessibility & contrast

On white

4.08
#878028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#878028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878028
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878028#FFFFFF#000000##000000
##8780281.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1B
Deuteranopia (green-blind)
#8E7F2E
Tritanopia (blue-blind)
#91776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #878028;
/* rgb */ color: rgb(135, 128, 40);
/* oklch */ color: oklch(58.9% 0.108 104.8);
Tailwind
colors: {
  custom: {
    50: '#ada468',
    500: '#878028',
    950: '#000000',
  },
}
SCSS
$custom: #878028;
$custom-light: #ada468;
$custom-dark: #000000;
JSON
{
  "hex": "#878028",
  "rgb": {
    "r": 135,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 55.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58909,
    "c": 0.10757,
    "h": 104.8
  },
  "luminance": 0.20742
}

Semantic roles & 50–950 ramp

primary
#878028
secondary
#575EB4
accent
#55DE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #878028

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

Preview Lab → · Contrast checker → · Palette generator →

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