#33217E#33217E

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

Color values

HEX#33217E
RGBrgb(51, 33, 126)
HSLhsl(252, 58%, 31%)
HSVhsv(252, 74%, 49%)
CMYKcmyk(59.5%, 73.8%, 0%, 50.6%)
CIE-LABlab(21.20, 35.07, -49.69)
CIE-LCHlch(21.20, 60.82, 305.22°)
OKLaboklab(33.6% 0.0357 -0.1431)
OKLCHoklch(33.6% 0.147 284)
XYZxyz(5.6738, 3.2975, 20.0721)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33217E #6C7E21
analogous
#213D7E #33217E #61217E
triadic
#33217E #7E3321 #217E33
tetradic
#33217E #7E213D #6C7E21 #217E61
square
#33217E #7E213D #6C7E21 #217E61
split-complementary
#33217E #7E6121 #3D7E21
monochromatic
#0C081D #1F144E #33217E #472EAE #644AD0

Accessibility & contrast

On white

12.65
#33217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33217E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33217E#FFFFFF#000000##FFFFFF
##33217E1.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)
#003681
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#0A3A4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33217e;
/* rgb */ color: rgb(51, 33, 126);
/* oklch */ color: oklch(33.6% 0.147 284.0);
Tailwind
colors: {
  custom: {
    50: '#745ea4',
    500: '#33217e',
    950: '#000000',
  },
}
SCSS
$custom: #33217e;
$custom-light: #745ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#33217e",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 251.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.14746,
    "h": 284
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#33217E
secondary
#9DB14A
accent
#E246C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33217E

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

Preview Lab → · Contrast checker → · Palette generator →

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