#78229C#78229C

#78229C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.189 H 313.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#78229C
RGBrgb(120, 34, 156)
HSLhsl(282, 64%, 37%)
HSVhsv(282, 78%, 61%)
CMYKcmyk(23.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.00, 54.83, -48.69)
CIE-LCHlch(33.00, 73.33, 318.39°)
OKLaboklab(44.7% 0.1302 -0.1377)
OKLCHoklch(44.7% 0.189 313.4)
XYZxyz(14.3174, 7.5379, 32.1468)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78229C #469C22
analogous
#3B229C #78229C #9C2283
triadic
#78229C #9C7822 #229C78
tetradic
#78229C #9C3B22 #469C22 #22839C
square
#78229C #9C3B22 #469C22 #22839C
split-complementary
#78229C #839C22 #229C3B
monochromatic
#2B0C38 #51176A #78229C #9F2DCE #B65DDC

Accessibility & contrast

On white

8.38
#78229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#78229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78229C
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78229C#FFFFFF#000000##FFFFFF
##78229C1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#144F99
Tritanopia (blue-blind)
#743F5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #78229c;
/* rgb */ color: rgb(120, 34, 156);
/* oklch */ color: oklch(44.7% 0.189 313.4);
Tailwind
colors: {
  custom: {
    50: '#a367ba',
    500: '#78229c',
    950: '#000000',
  },
}
SCSS
$custom: #78229c;
$custom-light: #a367ba;
$custom-dark: #000000;
JSON
{
  "hex": "#78229c",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 282.295,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44702,
    "c": 0.18947,
    "h": 313.4
  },
  "luminance": 0.07537
}

Semantic roles & 50–950 ramp

primary
#78229C
secondary
#78C05A
accent
#E74172
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #78229C

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

Preview Lab → · Contrast checker → · Palette generator →

#78229C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva