#78228F#78228F

#78228F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.178 H 318.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#78228F
RGBrgb(120, 34, 143)
HSLhsl(287, 62%, 35%)
HSVhsv(287, 76%, 56%)
CMYKcmyk(16.1%, 76.2%, 0%, 43.9%)
CIE-LABlab(32.08, 52.18, -42.22)
CIE-LCHlch(32.08, 67.12, 321.02°)
OKLaboklab(43.76% 0.1322 -0.1187)
OKLCHoklch(43.76% 0.178 318.1)
XYZxyz(13.2750, 7.1209, 26.6565)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78228F #398F22
analogous
#41228F #78228F #8F2270
triadic
#78228F #8F7822 #228F78
tetradic
#78228F #8F4122 #398F22 #22708F
square
#78228F #8F4122 #398F22 #22708F
split-complementary
#78228F #708F22 #228F41
monochromatic
#250A2C #4F165E #78228F #A12EC0 #BB55D7

Accessibility & contrast

On white

8.66
#78228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#78228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78228F
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78228F#FFFFFF#000000##FFFFFF
##78228F1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#274E8D
Tritanopia (blue-blind)
#773957
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #78228f;
/* rgb */ color: rgb(120, 34, 143);
/* oklch */ color: oklch(43.8% 0.178 318.1);
Tailwind
colors: {
  custom: {
    50: '#a367b0',
    500: '#78228f',
    950: '#000000',
  },
}
SCSS
$custom: #78228f;
$custom-light: #a367b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78228f",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 287.339,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4376,
    "c": 0.17761,
    "h": 318.1
  },
  "luminance": 0.0712
}

Semantic roles & 50–950 ramp

primary
#78228F
secondary
#68BA52
accent
#E54365
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #78228F

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

Preview Lab → · Contrast checker → · Palette generator →

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