#78147B#78147B

#78147B is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.3% C 0.174 H 326.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#78147B
RGBrgb(120, 20, 123)
HSLhsl(298, 72%, 28%)
HSVhsv(298, 84%, 48%)
CMYKcmyk(2.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(29.22, 52.89, -34.32)
CIE-LCHlch(29.22, 63.05, 327.02°)
OKLaboklab(41.31% 0.1461 -0.0955)
OKLCHoklch(41.31% 0.175 326.8)
XYZxyz(11.5708, 5.9243, 19.2691)
Luminance0.0592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78147B #177B14
analogous
#44147B #78147B #7B144B
triadic
#78147B #7B7814 #147B78
tetradic
#78147B #7B4414 #177B14 #144B7B
square
#78147B #7B4414 #177B14 #144B7B
split-complementary
#78147B #4B7B14 #147B44
monochromatic
#1A041A #450B46 #78147B #AB1DB0 #D82DDD

Accessibility & contrast

On white

9.61
#78147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#78147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78147B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78147B#FFFFFF#000000##FFFFFF
##78147B1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#304979
Tritanopia (blue-blind)
#7C2849
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #78147b;
/* rgb */ color: rgb(120, 20, 123);
/* oklch */ color: oklch(41.3% 0.174 326.8);
Tailwind
colors: {
  custom: {
    50: '#a361a2',
    500: '#78147b',
    950: '#000000',
  },
}
SCSS
$custom: #78147b;
$custom-light: #a361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78147b",
  "rgb": {
    "r": 120,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 298.252,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41311,
    "c": 0.1745,
    "h": 326.8
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#78147B
secondary
#3EB13A
accent
#EF393E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10050F
muted
#7F7A7F

Preview Lab

Preview with #78147B

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

Preview Lab → · Contrast checker → · Palette generator →

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