#32217A#32217A

#32217A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.142 H 284.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#32217A
RGBrgb(50, 33, 122)
HSLhsl(251, 57%, 30%)
HSVhsv(251, 73%, 48%)
CMYKcmyk(59%, 73%, 0%, 52.2%)
CIE-LABlab(20.71, 33.62, -47.94)
CIE-LCHlch(20.71, 58.56, 305.04°)
OKLaboklab(33.11% 0.035 -0.138)
OKLCHoklch(33.11% 0.142 284.2)
XYZxyz(5.3710, 3.1706, 18.7376)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32217A #697A21
analogous
#213C7A #32217A #5E217A
triadic
#32217A #7A3221 #217A32
tetradic
#32217A #7A213C #697A21 #217A5E
square
#32217A #7A213C #697A21 #217A5E
split-complementary
#32217A #7A5E21 #3C7A21
monochromatic
#0B071A #1E144A #32217A #462EAA #6148CD

Accessibility & contrast

On white

12.85
#32217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#32217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32217A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32217A#FFFFFF#000000##FFFFFF
##32217A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#0D394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #32217a;
/* rgb */ color: rgb(50, 33, 122);
/* oklch */ color: oklch(33.1% 0.142 284.2);
Tailwind
colors: {
  custom: {
    50: '#735ea1',
    500: '#32217a',
    950: '#000000',
  },
}
SCSS
$custom: #32217a;
$custom-light: #735ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#32217a",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 251.461,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.14236,
    "h": 284.2
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#32217A
secondary
#9AAD4A
accent
#E147C3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #32217A

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

Preview Lab → · Contrast checker → · Palette generator →

#32217A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva