#3A217D#3A217D

#3A217D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.146 H 288.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3A217D
RGBrgb(58, 33, 125)
HSLhsl(256, 58%, 31%)
HSVhsv(256, 74%, 49%)
CMYKcmyk(53.6%, 73.6%, 0%, 51%)
CIE-LABlab(21.83, 35.92, -48.00)
CIE-LCHlch(21.83, 59.95, 306.81°)
OKLaboklab(34.19% 0.0467 -0.1379)
OKLCHoklch(34.19% 0.146 288.7)
XYZxyz(5.9894, 3.4676, 19.7518)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A217D #647D21
analogous
#21367D #3A217D #68217D
triadic
#3A217D #7D3A21 #217D3A
tetradic
#3A217D #7D2136 #647D21 #217D68
square
#3A217D #7D2136 #647D21 #217D68
split-complementary
#3A217D #7D6821 #367D21
monochromatic
#0D071C #24144D #3A217D #502EAD #6E49CF

Accessibility & contrast

On white

12.40
#3A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A217D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A217D#FFFFFF#000000##FFFFFF
##3A217D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#21394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a217d;
/* rgb */ color: rgb(58, 33, 125);
/* oklch */ color: oklch(34.2% 0.146 288.7);
Tailwind
colors: {
  custom: {
    50: '#785fa3',
    500: '#3a217d',
    950: '#000000',
  },
}
SCSS
$custom: #3a217d;
$custom-light: #785fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a217d",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 256.304,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3419,
    "c": 0.14555,
    "h": 288.7
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#3A217D
secondary
#94B04A
accent
#E146B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A217D

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

Preview Lab → · Contrast checker → · Palette generator →

#3A217D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva