#3217A1#3217A1

#3217A1 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.199 H 278.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#3217A1
RGBrgb(50, 23, 161)
HSLhsl(252, 75%, 36%)
HSVhsv(252, 86%, 63%)
CMYKcmyk(68.9%, 85.7%, 0%, 36.9%)
CIE-LABlab(23.21, 50.57, -68.12)
CIE-LCHlch(23.21, 84.84, 306.59°)
OKLaboklab(36.11% 0.0297 -0.1967)
OKLCHoklch(36.11% 0.199 278.6)
XYZxyz(8.0527, 3.8634, 34.0326)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3217A1 #86A117
analogous
#1741A1 #3217A1 #7717A1
triadic
#3217A1 #A13217 #17A132
tetradic
#3217A1 #A11741 #86A117 #17A177
square
#3217A1 #A11741 #86A117 #17A177
split-complementary
#3217A1 #A17717 #41A117
monochromatic
#110836 #210F6B #3217A1 #431FD7 #6B4DE6

Accessibility & contrast

On white

11.85
#3217A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3217A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3217A1
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3217A1#FFFFFF#000000##FFFFFF
##3217A11.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3217a1;
/* rgb */ color: rgb(50, 23, 161);
/* oklch */ color: oklch(36.1% 0.199 278.6);
Tailwind
colors: {
  custom: {
    50: '#7c5bbe',
    500: '#3217a1',
    950: '#000000',
  },
}
SCSS
$custom: #3217a1;
$custom-light: #7c5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3217a1",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 251.739,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3611,
    "c": 0.19893,
    "h": 278.6
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#3217A1
secondary
#AFC74C
accent
#F236CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3217A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3217A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva