#78771F#78771F

#78771F is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.3% C 0.107 H 108.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#78771F
RGBrgb(120, 119, 31)
HSLhsl(59, 59%, 30%)
HSVhsv(59, 74%, 47%)
CMYKcmyk(0%, 0.8%, 74.2%, 52.9%)
CIE-LABlab(48.62, -10.81, 45.69)
CIE-LCHlch(48.62, 46.95, 103.31°)
OKLaboklab(55.33% -0.0344 0.1012)
OKLCHoklch(55.33% 0.107 108.8)
XYZxyz(14.5904, 17.2861, 3.8640)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78771F #1F2078
analogous
#784B1F #78771F #4D781F
triadic
#78771F #1F7877 #771F78
tetradic
#78771F #1F784B #1F2078 #781F4D
square
#78771F #1F784B #1F2078 #781F4D
split-complementary
#78771F #1F4D78 #4B1F78
monochromatic
#181806 #474712 #78771F #A9A72C #CECD43

Accessibility & contrast

On white

4.71
#78771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#78771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #78771F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78771F#FFFFFF#000000##FFFFFF
##78771F1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720F
Deuteranopia (green-blind)
#827526
Tritanopia (blue-blind)
#816F66
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #78771f;
/* rgb */ color: rgb(120, 119, 31);
/* oklch */ color: oklch(55.3% 0.107 108.8);
Tailwind
colors: {
  custom: {
    50: '#a29e61',
    500: '#78771f',
    950: '#000000',
  },
}
SCSS
$custom: #78771f;
$custom-light: #a29e61;
$custom-dark: #000000;
JSON
{
  "hex": "#78771f",
  "rgb": {
    "r": 120,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 59.326,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55334,
    "c": 0.10685,
    "h": 108.8
  },
  "luminance": 0.17286
}

Semantic roles & 50–950 ramp

primary
#78771F
secondary
#4748AB
accent
#47E246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #78771F

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

Preview Lab → · Contrast checker → · Palette generator →

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