#78227D#78227D

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

Color values

HEX#78227D
RGBrgb(120, 34, 125)
HSLhsl(297, 57%, 31%)
HSVhsv(297, 73%, 49%)
CMYKcmyk(4%, 72.8%, 0%, 51%)
CIE-LABlab(30.92, 48.71, -32.87)
CIE-LCHlch(30.92, 58.77, 325.99°)
OKLaboklab(42.56% 0.1333 -0.0913)
OKLCHoklch(42.56% 0.162 325.6)
XYZxyz(12.0192, 6.6186, 20.0425)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78227D #277D22
analogous
#4A227D #78227D #7D2254
triadic
#78227D #7D7822 #227D78
tetradic
#78227D #7D4A22 #277D22 #22547D
square
#78227D #7D4A22 #277D22 #22547D
split-complementary
#78227D #547D22 #227D4A
monochromatic
#1C081D #4A154D #78227D #A62FAD #C74BCE

Accessibility & contrast

On white

9.04
#78227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#78227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78227D
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78227D#FFFFFF#000000##FFFFFF
##78227D1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#7B314D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78227d;
/* rgb */ color: rgb(120, 34, 125);
/* oklch */ color: oklch(42.6% 0.162 325.6);
Tailwind
colors: {
  custom: {
    50: '#a266a3',
    500: '#78227d',
    950: '#000000',
  },
}
SCSS
$custom: #78227d;
$custom-light: #a266a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78227d",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 296.703,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.16162,
    "h": 325.6
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#78227D
secondary
#51B04B
accent
#E04750
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78227D

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

Preview Lab → · Contrast checker → · Palette generator →

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