#33217B#33217B

#33217B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.144 H 284.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#33217B
RGBrgb(51, 33, 123)
HSLhsl(252, 58%, 31%)
HSVhsv(252, 73%, 48%)
CMYKcmyk(58.5%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.91, 34.11, -48.26)
CIE-LCHlch(20.91, 59.09, 305.25°)
OKLaboklab(33.3% 0.0363 -0.1389)
OKLCHoklch(33.3% 0.144 284.7)
XYZxyz(5.4832, 3.2213, 19.0679)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33217B #697B21
analogous
#213C7B #33217B #60217B
triadic
#33217B #7B3321 #217B33
tetradic
#33217B #7B213C #697B21 #217B60
square
#33217B #7B213C #697B21 #217B60
split-complementary
#33217B #7B6021 #3C7B21
monochromatic
#0B071A #1F144B #33217B #472EAB #6348CE

Accessibility & contrast

On white

12.77
#33217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#33217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33217B
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33217B#FFFFFF#000000##FFFFFF
##33217B1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#10394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33217b;
/* rgb */ color: rgb(51, 33, 123);
/* oklch */ color: oklch(33.3% 0.144 284.7);
Tailwind
colors: {
  custom: {
    50: '#735ea2',
    500: '#33217b',
    950: '#000000',
  },
}
SCSS
$custom: #33217b;
$custom-light: #735ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#33217b",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 252,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33304,
    "c": 0.14355,
    "h": 284.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#33217B
secondary
#9AAE4A
accent
#E147C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33217B

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

Preview Lab → · Contrast checker → · Palette generator →

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