#32217F#32217F

#32217F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.149 H 283.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#32217F
RGBrgb(50, 33, 127)
HSLhsl(251, 59%, 31%)
HSVhsv(251, 74%, 50%)
CMYKcmyk(60.6%, 74%, 0%, 50.2%)
CIE-LABlab(21.20, 35.24, -50.33)
CIE-LCHlch(21.20, 61.44, 305.00°)
OKLaboklab(33.61% 0.034 -0.145)
OKLCHoklch(33.61% 0.149 283.2)
XYZxyz(5.6888, 3.2978, 20.4113)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32217F #6E7F21
analogous
#213F7F #32217F #61217F
triadic
#32217F #7F3221 #217F32
tetradic
#32217F #7F213F #6E7F21 #217F61
square
#32217F #7F213F #6E7F21 #217F61
split-complementary
#32217F #7F6121 #3F7F21
monochromatic
#0C081E #1F144E #32217F #452EB0 #634AD0

Accessibility & contrast

On white

12.65
#32217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#32217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #32217F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32217F#FFFFFF#000000##FFFFFF
##32217F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#033A4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #32217f;
/* rgb */ color: rgb(50, 33, 127);
/* oklch */ color: oklch(33.6% 0.149 283.2);
Tailwind
colors: {
  custom: {
    50: '#745ea5',
    500: '#32217f',
    950: '#000000',
  },
}
SCSS
$custom: #32217f;
$custom-light: #745ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#32217f",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 250.851,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33605,
    "c": 0.14889,
    "h": 283.2
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#32217F
secondary
#9FB24A
accent
#E246C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #32217F

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

Preview Lab → · Contrast checker → · Palette generator →

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