#78177B#78177B

#78177B is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.172 H 326.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#78177B
RGBrgb(120, 23, 123)
HSLhsl(298, 68%, 29%)
HSVhsv(298, 81%, 48%)
CMYKcmyk(2.4%, 81.3%, 0%, 51.8%)
CIE-LABlab(29.51, 52.06, -33.87)
CIE-LCHlch(29.51, 62.11, 326.96°)
OKLaboklab(41.51% 0.1438 -0.0942)
OKLCHoklch(41.51% 0.172 326.8)
XYZxyz(11.6271, 6.0368, 19.2879)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78177B #1A7B17
analogous
#46177B #78177B #7B174C
triadic
#78177B #7B7817 #177B78
tetradic
#78177B #7B4617 #1A7B17 #174C7B
square
#78177B #7B4617 #1A7B17 #174C7B
split-complementary
#78177B #4C7B17 #177B46
monochromatic
#19051A #460D47 #78177B #AA21AF #D433D9

Accessibility & contrast

On white

9.51
#78177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#78177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78177B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78177B#FFFFFF#000000##FFFFFF
##78177B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#314A79
Tritanopia (blue-blind)
#7B2949
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78177b;
/* rgb */ color: rgb(120, 23, 123);
/* oklch */ color: oklch(41.5% 0.172 326.8);
Tailwind
colors: {
  custom: {
    50: '#a262a2',
    500: '#78177b',
    950: '#000000',
  },
}
SCSS
$custom: #78177b;
$custom-light: #a262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78177b",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 298.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41512,
    "c": 0.17186,
    "h": 326.8
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#78177B
secondary
#41B03E
accent
#EB3C42
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78177B

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

Preview Lab → · Contrast checker → · Palette generator →

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