#78871C#78871C

#78871C is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.127 H 117.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#78871C
RGBrgb(120, 135, 28)
HSLhsl(68, 66%, 32%)
HSVhsv(68, 79%, 53%)
CMYKcmyk(11.1%, 0%, 79.3%, 47.1%)
CIE-LABlab(53.39, -19.50, 51.24)
CIE-LCHlch(53.39, 54.83, 110.83°)
OKLaboklab(59.15% -0.0588 0.1124)
OKLCHoklch(59.15% 0.127 117.6)
XYZxyz(16.6197, 21.4050, 4.3544)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78871C #2B1C87
analogous
#87611C #78871C #43871C
triadic
#78871C #1C7887 #871C78
tetradic
#78871C #1C8761 #2B1C87 #871C43
square
#78871C #1C8761 #2B1C87 #871C43
split-complementary
#78871C #1C4387 #611C87
monochromatic
#1E2207 #4B5411 #78871C #A5BA27 #C4D845

Accessibility & contrast

On white

3.98
#78871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#78871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #78871C
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78871C#FFFFFF#000000##000000
##78871C1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #78871c;
/* rgb */ color: rgb(120, 135, 28);
/* oklch */ color: oklch(59.2% 0.127 117.6);
Tailwind
colors: {
  custom: {
    50: '#a2a962',
    500: '#78871c',
    950: '#000000',
  },
}
SCSS
$custom: #78871c;
$custom-light: #a2a962;
$custom-dark: #000000;
JSON
{
  "hex": "#78871c",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 68.411,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59153,
    "c": 0.12681,
    "h": 117.6
  },
  "luminance": 0.21405
}

Semantic roles & 50–950 ramp

primary
#78871C
secondary
#5545BA
accent
#3FE957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #78871C

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

Preview Lab → · Contrast checker → · Palette generator →

#78871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva