#78227B#78227B

#78227B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.160 H 326.5°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#78227B
RGBrgb(120, 34, 123)
HSLhsl(298, 57%, 31%)
HSVhsv(298, 72%, 48%)
CMYKcmyk(2.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(30.80, 48.35, -31.80)
CIE-LCHlch(30.80, 57.87, 326.66°)
OKLaboklab(42.44% 0.1334 -0.0882)
OKLCHoklch(42.44% 0.16 326.5)
XYZxyz(11.8927, 6.5680, 19.3764)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78227B #257B22
analogous
#4B227B #78227B #7B2251
triadic
#78227B #7B7822 #227B78
tetradic
#78227B #7B4B22 #257B22 #22517B
square
#78227B #7B4B22 #257B22 #22517B
split-complementary
#78227B #517B22 #227B4B
monochromatic
#1A071B #49154B #78227B #A72FAB #C94ACD

Accessibility & contrast

On white

9.08
#78227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#78227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78227B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78227B#FFFFFF#000000##FFFFFF
##78227B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#7B304C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78227b;
/* rgb */ color: rgb(120, 34, 123);
/* oklch */ color: oklch(42.4% 0.160 326.5);
Tailwind
colors: {
  custom: {
    50: '#a266a1',
    500: '#78227b',
    950: '#000000',
  },
}
SCSS
$custom: #78227b;
$custom-light: #a266a1;
$custom-dark: #000000;
JSON
{
  "hex": "#78227b",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 297.978,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42438,
    "c": 0.1599,
    "h": 326.5
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#78227B
secondary
#4EAE4B
accent
#E0484D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78227B

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

Preview Lab → · Contrast checker → · Palette generator →

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