#78156F#78156F

#78156F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.164 H 332.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#78156F
RGBrgb(120, 21, 111)
HSLhsl(305, 70%, 28%)
HSVhsv(305, 83%, 47%)
CMYKcmyk(0%, 82.5%, 7.5%, 52.9%)
CIE-LABlab(28.59, 50.62, -27.69)
CIE-LCHlch(28.59, 57.70, 331.32°)
OKLaboklab(40.62% 0.1456 -0.0762)
OKLCHoklch(40.62% 0.164 332.4)
XYZxyz(10.8832, 5.6780, 15.5586)
Luminance0.0568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78156F #15781E
analogous
#501578 #78156F #78153D
triadic
#78156F #6F7815 #156F78
tetradic
#78156F #785015 #15781E #153D78
square
#78156F #785015 #15781E #153D78
split-complementary
#78156F #3D7815 #157850
monochromatic
#1A0518 #440C3F #78156F #AC1E9F #DA2DCB

Accessibility & contrast

On white

9.83
#78156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#78156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78156F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78156F#FFFFFF#000000##FFFFFF
##78156F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3B71
Deuteranopia (green-blind)
#38486D
Tritanopia (blue-blind)
#7D2242
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78156f;
/* rgb */ color: rgb(120, 21, 111);
/* oklch */ color: oklch(40.6% 0.164 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26098',
    500: '#78156f',
    950: '#000000',
  },
}
SCSS
$custom: #78156f;
$custom-light: #a26098;
$custom-dark: #000000;
JSON
{
  "hex": "#78156f",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 305.455,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40624,
    "c": 0.16437,
    "h": 332.4
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#78156F
secondary
#3BAE46
accent
#ED4B3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E

Preview Lab

Preview with #78156F

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

Preview Lab → · Contrast checker → · Palette generator →

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