#3A216E#3A216E

#3A216E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.126 H 293.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3A216E
RGBrgb(58, 33, 110)
HSLhsl(259, 54%, 28%)
HSVhsv(259, 70%, 43%)
CMYKcmyk(47.3%, 70%, 0%, 56.9%)
CIE-LABlab(20.49, 31.33, -40.56)
CIE-LCHlch(20.49, 51.26, 307.68°)
OKLaboklab(32.82% 0.0494 -0.116)
OKLCHoklch(32.82% 0.126 293.1)
XYZxyz(5.1025, 3.1129, 15.0808)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216E #556E21
analogous
#212E6E #3A216E #60216E
triadic
#3A216E #6E3A21 #216E3A
tetradic
#3A216E #6E212E #556E21 #216E60
square
#3A216E #6E212E #556E21 #216E60
split-complementary
#3A216E #6E6021 #2E6E21
monochromatic
#0C0718 #21133F #3A216E #532F9D #6E43C7

Accessibility & contrast

On white

12.94
#3A216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A216E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216E#FFFFFF#000000##FFFFFF
##3A216E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#2B3444
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a216e;
/* rgb */ color: rgb(58, 33, 110);
/* oklch */ color: oklch(32.8% 0.126 293.1);
Tailwind
colors: {
  custom: {
    50: '#755e98',
    500: '#3a216e',
    950: '#000000',
  },
}
SCSS
$custom: #3a216e;
$custom-light: #755e98;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216e",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 259.481,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3282,
    "c": 0.12613,
    "h": 293.1
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#3A216E
secondary
#85A249
accent
#DD4BAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A216E

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

Preview Lab → · Contrast checker → · Palette generator →

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