#78227F#78227F

#78227F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.163 H 324.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#78227F
RGBrgb(120, 34, 127)
HSLhsl(295, 58%, 32%)
HSVhsv(295, 73%, 50%)
CMYKcmyk(5.5%, 73.2%, 0%, 50.2%)
CIE-LABlab(31.04, 49.09, -33.93)
CIE-LCHlch(31.04, 59.67, 325.35°)
OKLaboklab(42.69% 0.1333 -0.0944)
OKLCHoklch(42.69% 0.163 324.7)
XYZxyz(12.1482, 6.6702, 20.7222)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78227F #297F22
analogous
#4A227F #78227F #7F2258
triadic
#78227F #7F7822 #227F78
tetradic
#78227F #7F4A22 #297F22 #22587F
square
#78227F #7F4A22 #297F22 #22587F
split-complementary
#78227F #587F22 #227F4A
monochromatic
#1D081E #4A154F #78227F #A62FAF #C54CCF

Accessibility & contrast

On white

9.00
#78227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78227F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78227F#FFFFFF#000000##FFFFFF
##78227F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064282
Deuteranopia (green-blind)
#344D7D
Tritanopia (blue-blind)
#7B324E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78227f;
/* rgb */ color: rgb(120, 34, 127);
/* oklch */ color: oklch(42.7% 0.163 324.7);
Tailwind
colors: {
  custom: {
    50: '#a266a4',
    500: '#78227f',
    950: '#000000',
  },
}
SCSS
$custom: #78227f;
$custom-light: #a266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78227f",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 295.484,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42689,
    "c": 0.16336,
    "h": 324.7
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#78227F
secondary
#53B24B
accent
#E14752
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78227F

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

Preview Lab → · Contrast checker → · Palette generator →

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