#78177F#78177F

#78177F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.175 H 325.0°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#78177F
RGBrgb(120, 23, 127)
HSLhsl(296, 69%, 29%)
HSVhsv(296, 82%, 50%)
CMYKcmyk(5.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(29.76, 52.77, -35.98)
CIE-LCHlch(29.76, 63.87, 325.71°)
OKLaboklab(41.78% 0.1435 -0.1003)
OKLCHoklch(41.78% 0.175 325)
XYZxyz(11.8826, 6.1390, 20.6336)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78177F #1E7F17
analogous
#44177F #78177F #7F1752
triadic
#78177F #7F7817 #177F78
tetradic
#78177F #7F4417 #1E7F17 #17527F
square
#78177F #7F4417 #1E7F17 #17527F
split-complementary
#78177F #527F17 #177F44
monochromatic
#18051A #470E4B #78177F #A920B3 #CF36DB

Accessibility & contrast

On white

9.43
#78177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#78177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78177F
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78177F#FFFFFF#000000##FFFFFF
##78177F1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#7B2B4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78177f;
/* rgb */ color: rgb(120, 23, 127);
/* oklch */ color: oklch(41.8% 0.175 325.0);
Tailwind
colors: {
  custom: {
    50: '#a362a5',
    500: '#78177f',
    950: '#000000',
  },
}
SCSS
$custom: #78177f;
$custom-light: #a362a5;
$custom-dark: #000000;
JSON
{
  "hex": "#78177f",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 295.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41775,
    "c": 0.17508,
    "h": 325
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#78177F
secondary
#46B43E
accent
#EC3C48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78177F

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

Preview Lab → · Contrast checker → · Palette generator →

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