#78781F#78781F

#78781F is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.6% C 0.108 H 109.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#78781F
RGBrgb(120, 120, 31)
HSLhsl(60, 59%, 30%)
HSVhsv(60, 74%, 47%)
CMYKcmyk(0%, 0%, 74.2%, 52.9%)
CIE-LABlab(48.92, -11.36, 45.97)
CIE-LCHlch(48.92, 47.36, 103.88°)
OKLaboklab(55.57% -0.0359 0.1018)
OKLCHoklch(55.57% 0.108 109.5)
XYZxyz(14.7100, 17.5254, 3.9039)
Luminance0.1752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78781F #1F1F78
analogous
#784C1F #78781F #4C781F
triadic
#78781F #1F7878 #781F78
tetradic
#78781F #1F784C #1F1F78 #781F4C
square
#78781F #1F784C #1F1F78 #781F4C
split-complementary
#78781F #1F4C78 #4C1F78
monochromatic
#181806 #474712 #78781F #A9A92C #CECE43

Accessibility & contrast

On white

4.66
#78781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#78781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #78781F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78781F#FFFFFF#000000##FFFFFF
##78781F1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#837626
Tritanopia (blue-blind)
#817067
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #78781f;
/* rgb */ color: rgb(120, 120, 31);
/* oklch */ color: oklch(55.6% 0.108 109.5);
Tailwind
colors: {
  custom: {
    50: '#a29e62',
    500: '#78781f',
    950: '#000000',
  },
}
SCSS
$custom: #78781f;
$custom-light: #a29e62;
$custom-dark: #000000;
JSON
{
  "hex": "#78781f",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55571,
    "c": 0.10792,
    "h": 109.5
  },
  "luminance": 0.17525
}

Semantic roles & 50–950 ramp

primary
#78781F
secondary
#4747AB
accent
#46E246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #78781F

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

Preview Lab → · Contrast checker → · Palette generator →

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