#78871F#78871F

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

Color values

HEX#78871F
RGBrgb(120, 135, 31)
HSLhsl(69, 63%, 33%)
HSVhsv(69, 77%, 53%)
CMYKcmyk(11.1%, 0%, 77%, 47.1%)
CIE-LABlab(53.41, -19.36, 50.25)
CIE-LCHlch(53.41, 53.85, 111.07°)
OKLaboklab(59.17% -0.0582 0.1108)
OKLCHoklch(59.17% 0.125 117.7)
XYZxyz(16.6574, 21.4201, 4.5530)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78871F #2E1F87
analogous
#87621F #78871F #44871F
triadic
#78871F #1F7887 #871F78
tetradic
#78871F #1F8762 #2E1F87 #871F44
square
#78871F #1F8762 #2E1F87 #871F44
split-complementary
#78871F #1F4487 #621F87
monochromatic
#202308 #4C5514 #78871F #A4B92A #C2D64B

Accessibility & contrast

On white

3.97
#78871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##78871F#FFFFFF#000000##000000
##78871F1.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F07
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #78871f;
/* rgb */ color: rgb(120, 135, 31);
/* oklch */ color: oklch(59.2% 0.125 117.7);
Tailwind
colors: {
  custom: {
    50: '#a2a963',
    500: '#78871f',
    950: '#000000',
  },
}
SCSS
$custom: #78871f;
$custom-light: #a2a963;
$custom-dark: #000000;
JSON
{
  "hex": "#78871f",
  "rgb": {
    "r": 120,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 68.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59171,
    "c": 0.12513,
    "h": 117.7
  },
  "luminance": 0.2142
}

Semantic roles & 50–950 ramp

primary
#78871F
secondary
#5A4AB8
accent
#42E65A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #78871F

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

Preview Lab → · Contrast checker → · Palette generator →

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