#78177A#78177A

#78177A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.171 H 327.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#78177A
RGBrgb(120, 23, 122)
HSLhsl(299, 68%, 28%)
HSVhsv(299, 81%, 48%)
CMYKcmyk(1.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(29.44, 51.89, -33.33)
CIE-LCHlch(29.44, 61.68, 327.28°)
OKLaboklab(41.45% 0.1438 -0.0926)
OKLCHoklch(41.45% 0.171 327.2)
XYZxyz(11.5648, 6.0118, 18.9599)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78177A #197A17
analogous
#46177A #78177A #7A174A
triadic
#78177A #7A7817 #177A78
tetradic
#78177A #7A4617 #197A17 #174A7A
square
#78177A #7A4617 #197A17 #174A7A
split-complementary
#78177A #4A7A17 #177A46
monochromatic
#19051A #450D47 #78177A #AB21AD #D533D9

Accessibility & contrast

On white

9.54
#78177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#78177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78177A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78177A#FFFFFF#000000##FFFFFF
##78177A1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#324A78
Tritanopia (blue-blind)
#7C2949
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78177a;
/* rgb */ color: rgb(120, 23, 122);
/* oklch */ color: oklch(41.4% 0.171 327.2);
Tailwind
colors: {
  custom: {
    50: '#a261a1',
    500: '#78177a',
    950: '#000000',
  },
}
SCSS
$custom: #78177a;
$custom-light: #a261a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78177a",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 298.788,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41448,
    "c": 0.17105,
    "h": 327.2
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#78177A
secondary
#40AF3E
accent
#EB3D40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #78177A

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

Preview Lab → · Contrast checker → · Palette generator →

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