#33217D#33217D

#33217D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.146 H 284.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#33217D
RGBrgb(51, 33, 125)
HSLhsl(252, 58%, 31%)
HSVhsv(252, 74%, 49%)
CMYKcmyk(59.2%, 73.6%, 0%, 51%)
CIE-LABlab(21.10, 34.75, -49.22)
CIE-LCHlch(21.10, 60.25, 305.23°)
OKLaboklab(33.5% 0.0359 -0.1417)
OKLCHoklch(33.5% 0.146 284.2)
XYZxyz(5.6096, 3.2718, 19.7340)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33217D #6B7D21
analogous
#213D7D #33217D #61217D
triadic
#33217D #7D3321 #217D33
tetradic
#33217D #7D213D #6B7D21 #217D61
square
#33217D #7D213D #6B7D21 #217D61
split-complementary
#33217D #7D6121 #3D7D21
monochromatic
#0B071C #1F144D #33217D #472EAD #6449CF

Accessibility & contrast

On white

12.69
#33217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#33217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33217D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33217D#FFFFFF#000000##FFFFFF
##33217D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#0C3A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33217d;
/* rgb */ color: rgb(51, 33, 125);
/* oklch */ color: oklch(33.5% 0.146 284.2);
Tailwind
colors: {
  custom: {
    50: '#745ea4',
    500: '#33217d',
    950: '#000000',
  },
}
SCSS
$custom: #33217d;
$custom-light: #745ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#33217d",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 251.739,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.335,
    "c": 0.14616,
    "h": 284.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#33217D
secondary
#9CB04A
accent
#E146C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #33217D

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

Preview Lab → · Contrast checker → · Palette generator →

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