#3A216B#3A216B

#3A216B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.122 H 294.1°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3A216B
RGBrgb(58, 33, 107)
HSLhsl(260, 53%, 27%)
HSVhsv(260, 69%, 42%)
CMYKcmyk(45.8%, 69.2%, 0%, 58%)
CIE-LABlab(20.24, 30.42, -39.03)
CIE-LCHlch(20.24, 49.48, 307.94°)
OKLaboklab(32.56% 0.0499 -0.1115)
OKLCHoklch(32.56% 0.122 294.1)
XYZxyz(4.9419, 3.0487, 14.2351)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216B #526B21
analogous
#212D6B #3A216B #5F216B
triadic
#3A216B #6B3A21 #216B3A
tetradic
#3A216B #6B212D #526B21 #216B5F
square
#3A216B #6B212D #526B21 #216B5F
split-complementary
#3A216B #6B5F21 #2D6B21
monochromatic
#0D0717 #21133C #3A216B #532F9A #6E42C5

Accessibility & contrast

On white

13.05
#3A216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A216B
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216B#FFFFFF#000000##FFFFFF
##3A216B1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#2C3343
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a216b;
/* rgb */ color: rgb(58, 33, 107);
/* oklch */ color: oklch(32.6% 0.122 294.1);
Tailwind
colors: {
  custom: {
    50: '#755e96',
    500: '#3a216b',
    950: '#000000',
  },
}
SCSS
$custom: #3a216b;
$custom-light: #755e96;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216b",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 260.27,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32559,
    "c": 0.12216,
    "h": 294.1
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#3A216B
secondary
#829F49
accent
#DC4CAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A216B

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

Preview Lab → · Contrast checker → · Palette generator →

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