#3A216D#3A216D

#3A216D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.125 H 293.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#3A216D
RGBrgb(58, 33, 109)
HSLhsl(260, 54%, 28%)
HSVhsv(260, 70%, 43%)
CMYKcmyk(46.8%, 69.7%, 0%, 57.3%)
CIE-LABlab(20.41, 31.03, -40.05)
CIE-LCHlch(20.41, 50.67, 307.76°)
OKLaboklab(32.73% 0.0496 -0.1145)
OKLCHoklch(32.73% 0.125 293.4)
XYZxyz(5.0483, 3.0912, 14.7957)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216D #546D21
analogous
#212E6D #3A216D #60216D
triadic
#3A216D #6D3A21 #216D3A
tetradic
#3A216D #6D212E #546D21 #216D60
square
#3A216D #6D212E #546D21 #216D60
split-complementary
#3A216D #6D6021 #2E6D21
monochromatic
#0C0717 #21133E #3A216D #532F9C #6E42C6

Accessibility & contrast

On white

12.98
#3A216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A216D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216D#FFFFFF#000000##FFFFFF
##3A216D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#2B3344
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a216d;
/* rgb */ color: rgb(58, 33, 109);
/* oklch */ color: oklch(32.7% 0.125 293.4);
Tailwind
colors: {
  custom: {
    50: '#755e97',
    500: '#3a216d',
    950: '#000000',
  },
}
SCSS
$custom: #3a216d;
$custom-light: #755e97;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216d",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 259.737,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.12481,
    "h": 293.4
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#3A216D
secondary
#84A149
accent
#DD4BAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A216D

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

Preview Lab → · Contrast checker → · Palette generator →

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