#78871A#78871A

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

Color values

HEX#78871A
RGBrgb(120, 135, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 53%)
CMYKcmyk(11.1%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.38, -19.58, 51.87)
CIE-LCHlch(53.38, 55.44, 110.69°)
OKLaboklab(59.14% -0.0592 0.1133)
OKLCHoklch(59.14% 0.128 117.6)
XYZxyz(16.5966, 21.3958, 4.2326)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78871A #291A87
analogous
#87601A #78871A #42871A
triadic
#78871A #1A7887 #871A78
tetradic
#78871A #1A8760 #291A87 #871A42
square
#78871A #1A8760 #291A87 #871A42
split-complementary
#78871A #1A4287 #601A87
monochromatic
#1D2006 #4A5410 #78871A #A6BA24 #C5DA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##78871A#FFFFFF#000000##000000
##78871A1.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)
#8F8025
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #78871a;
/* rgb */ color: rgb(120, 135, 26);
/* oklch */ color: oklch(59.1% 0.128 117.6);
Tailwind
colors: {
  custom: {
    50: '#a2a961',
    500: '#78871a',
    950: '#000000',
  },
}
SCSS
$custom: #78871a;
$custom-light: #a2a961;
$custom-dark: #000000;
JSON
{
  "hex": "#78871a",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 68.257,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59142,
    "c": 0.12786,
    "h": 117.6
  },
  "luminance": 0.21396
}

Semantic roles & 50–950 ramp

primary
#78871A
secondary
#5342BA
accent
#3DEB55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #78871A

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

Preview Lab → · Contrast checker → · Palette generator →

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