#3A216F#3A216F

#3A216F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.127 H 292.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3A216F
RGBrgb(58, 33, 111)
HSLhsl(259, 54%, 28%)
HSVhsv(259, 70%, 44%)
CMYKcmyk(47.7%, 70.3%, 0%, 56.5%)
CIE-LABlab(20.58, 31.64, -41.07)
CIE-LCHlch(20.58, 51.84, 307.61°)
OKLaboklab(32.91% 0.0493 -0.1175)
OKLCHoklch(32.91% 0.127 292.8)
XYZxyz(5.1572, 3.1348, 15.3692)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216F #566F21
analogous
#212F6F #3A216F #61216F
triadic
#3A216F #6F3A21 #216F3A
tetradic
#3A216F #6F212F #566F21 #216F61
square
#3A216F #6F212F #566F21 #216F61
split-complementary
#3A216F #6F6121 #2F6F21
monochromatic
#0C0718 #211340 #3A216F #532F9E #6E43C7

Accessibility & contrast

On white

12.91
#3A216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A216F
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216F#FFFFFF#000000##FFFFFF
##3A216F1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#2A3445
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a216f;
/* rgb */ color: rgb(58, 33, 111);
/* oklch */ color: oklch(32.9% 0.127 292.8);
Tailwind
colors: {
  custom: {
    50: '#755e99',
    500: '#3a216f',
    950: '#000000',
  },
}
SCSS
$custom: #3a216f;
$custom-light: #755e99;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216f",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 259.231,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32908,
    "c": 0.12745,
    "h": 292.8
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#3A216F
secondary
#86A349
accent
#DE4AAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A216F

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

Preview Lab → · Contrast checker → · Palette generator →

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