#78871D#78871D

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

Color values

HEX#78871D
RGBrgb(120, 135, 29)
HSLhsl(68, 65%, 32%)
HSVhsv(68, 79%, 53%)
CMYKcmyk(11.1%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.40, -19.45, 50.92)
CIE-LCHlch(53.40, 54.51, 110.91°)
OKLaboklab(59.16% -0.0586 0.1119)
OKLCHoklch(59.16% 0.126 117.7)
XYZxyz(16.6319, 21.4099, 4.4185)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78871D #2C1D87
analogous
#87611D #78871D #43871D
triadic
#78871D #1D7887 #871D78
tetradic
#78871D #1D8761 #2C1D87 #871D43
square
#78871D #1D8761 #2C1D87 #871D43
split-complementary
#78871D #1D4387 #611D87
monochromatic
#1E2207 #4B5512 #78871D #A5B928 #C3D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##78871D#FFFFFF#000000##000000
##78871D1.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)
#917F02
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #78871d;
/* rgb */ color: rgb(120, 135, 29);
/* oklch */ color: oklch(59.2% 0.126 117.7);
Tailwind
colors: {
  custom: {
    50: '#a2a963',
    500: '#78871d',
    950: '#000000',
  },
}
SCSS
$custom: #78871d;
$custom-light: #a2a963;
$custom-dark: #000000;
JSON
{
  "hex": "#78871d",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 68.491,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59159,
    "c": 0.12627,
    "h": 117.7
  },
  "luminance": 0.2141
}

Semantic roles & 50–950 ramp

primary
#78871D
secondary
#5746B9
accent
#40E858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #78871D

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

Preview Lab → · Contrast checker → · Palette generator →

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