#78871B#78871B

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

Color values

HEX#78871B
RGBrgb(120, 135, 27)
HSLhsl(68, 67%, 32%)
HSVhsv(68, 80%, 53%)
CMYKcmyk(11.1%, 0%, 80%, 47.1%)
CIE-LABlab(53.38, -19.54, 51.56)
CIE-LCHlch(53.38, 55.14, 110.76°)
OKLaboklab(59.15% -0.059 0.1128)
OKLCHoklch(59.15% 0.127 117.6)
XYZxyz(16.6079, 21.4003, 4.2925)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78871B #2A1B87
analogous
#87601B #78871B #42871B
triadic
#78871B #1B7887 #871B78
tetradic
#78871B #1B8760 #2A1B87 #871B42
square
#78871B #1B8760 #2A1B87 #871B42
split-complementary
#78871B #1B4287 #601B87
monochromatic
#1D2107 #4B5411 #78871B #A5BA25 #C5D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##78871B#FFFFFF#000000##000000
##78871B1.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: #78871b;
/* rgb */ color: rgb(120, 135, 27);
/* oklch */ color: oklch(59.1% 0.127 117.6);
Tailwind
colors: {
  custom: {
    50: '#a2a962',
    500: '#78871b',
    950: '#000000',
  },
}
SCSS
$custom: #78871b;
$custom-light: #a2a962;
$custom-dark: #000000;
JSON
{
  "hex": "#78871b",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 68.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59147,
    "c": 0.12734,
    "h": 117.6
  },
  "luminance": 0.214
}

Semantic roles & 50–950 ramp

primary
#78871B
secondary
#5444BA
accent
#3EEA56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A

Preview Lab

Preview with #78871B

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

Preview Lab → · Contrast checker → · Palette generator →

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