#78227E#78227E

#78227E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.163 H 325.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#78227E
RGBrgb(120, 34, 126)
HSLhsl(296, 58%, 31%)
HSVhsv(296, 73%, 49%)
CMYKcmyk(4.8%, 73%, 0%, 50.6%)
CIE-LABlab(30.98, 48.90, -33.40)
CIE-LCHlch(30.98, 59.22, 325.66°)
OKLaboklab(42.63% 0.1333 -0.0929)
OKLCHoklch(42.63% 0.163 325.1)
XYZxyz(12.0834, 6.6443, 20.3806)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78227E #287E22
analogous
#4A227E #78227E #7E2256
triadic
#78227E #7E7822 #227E78
tetradic
#78227E #7E4A22 #287E22 #22567E
square
#78227E #7E4A22 #287E22 #22567E
split-complementary
#78227E #567E22 #227E4A
monochromatic
#1C081E #4A154E #78227E #A62FAE #C64CCF

Accessibility & contrast

On white

9.02
#78227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#78227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78227E
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78227E#FFFFFF#000000##FFFFFF
##78227E1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094281
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#7B314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78227e;
/* rgb */ color: rgb(120, 34, 126);
/* oklch */ color: oklch(42.6% 0.163 325.1);
Tailwind
colors: {
  custom: {
    50: '#a266a4',
    500: '#78227e',
    950: '#000000',
  },
}
SCSS
$custom: #78227e;
$custom-light: #a266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78227e",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 296.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.1625,
    "h": 325.1
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#78227E
secondary
#52B14B
accent
#E14751
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78227E

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

Preview Lab → · Contrast checker → · Palette generator →

#78227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva