#78229B#78229B

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

Color values

HEX#78229B
RGBrgb(120, 34, 155)
HSLhsl(283, 64%, 37%)
HSVhsv(283, 78%, 61%)
CMYKcmyk(22.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(32.93, 54.62, -48.20)
CIE-LCHlch(32.93, 72.84, 318.57°)
OKLaboklab(44.63% 0.1304 -0.1362)
OKLCHoklch(44.63% 0.189 313.7)
XYZxyz(14.2331, 7.5042, 31.7027)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78229B #459B22
analogous
#3C229B #78229B #9B2281
triadic
#78229B #9B7822 #229B78
tetradic
#78229B #9B3C22 #459B22 #22819B
square
#78229B #9B3C22 #459B22 #22819B
split-complementary
#78229B #819B22 #229B3C
monochromatic
#2A0C37 #511769 #78229B #9F2DCD #B65CDB

Accessibility & contrast

On white

8.40
#78229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#78229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78229B
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78229B#FFFFFF#000000##FFFFFF
##78229B1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#164F98
Tritanopia (blue-blind)
#743E5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #78229b;
/* rgb */ color: rgb(120, 34, 155);
/* oklch */ color: oklch(44.6% 0.189 313.7);
Tailwind
colors: {
  custom: {
    50: '#a367b9',
    500: '#78229b',
    950: '#000000',
  },
}
SCSS
$custom: #78229b;
$custom-light: #a367b9;
$custom-dark: #000000;
JSON
{
  "hex": "#78229b",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 282.645,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44628,
    "c": 0.18855,
    "h": 313.7
  },
  "luminance": 0.07504
}

Semantic roles & 50–950 ramp

primary
#78229B
secondary
#77C059
accent
#E74171
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #78229B

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

Preview Lab → · Contrast checker → · Palette generator →

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