#78176F#78176F

#78176F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.162 H 332.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#78176F
RGBrgb(120, 23, 111)
HSLhsl(306, 68%, 28%)
HSVhsv(306, 81%, 47%)
CMYKcmyk(0%, 80.8%, 7.5%, 52.9%)
CIE-LABlab(28.78, 50.04, -27.37)
CIE-LCHlch(28.78, 57.04, 331.32°)
OKLaboklab(40.77% 0.144 -0.0753)
OKLCHoklch(40.77% 0.162 332.4)
XYZxyz(10.9214, 5.7545, 15.5714)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78176F #177820
analogous
#501778 #78176F #78173E
triadic
#78176F #6F7817 #176F78
tetradic
#78176F #785017 #177820 #173E78
square
#78176F #785017 #177820 #173E78
split-complementary
#78176F #3E7817 #177850
monochromatic
#1A0518 #450D3F #78176F #AB219F #D832C8

Accessibility & contrast

On white

9.76
#78176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#78176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78176F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78176F#FFFFFF#000000##FFFFFF
##78176F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B71
Deuteranopia (green-blind)
#38496D
Tritanopia (blue-blind)
#7D2342
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78176f;
/* rgb */ color: rgb(120, 23, 111);
/* oklch */ color: oklch(40.8% 0.162 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26198',
    500: '#78176f',
    950: '#000000',
  },
}
SCSS
$custom: #78176f;
$custom-light: #a26198;
$custom-dark: #000000;
JSON
{
  "hex": "#78176f",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 305.567,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.16246,
    "h": 332.4
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#78176F
secondary
#3EAD48
accent
#EB4D3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E

Preview Lab

Preview with #78176F

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

Preview Lab → · Contrast checker → · Palette generator →

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