#3A216A#3A216A

#3A216A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.121 H 294.4°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3A216A
RGBrgb(58, 33, 106)
HSLhsl(261, 53%, 27%)
HSVhsv(261, 69%, 42%)
CMYKcmyk(45.3%, 68.9%, 0%, 58.4%)
CIE-LABlab(20.15, 30.12, -38.51)
CIE-LCHlch(20.15, 48.89, 308.03°)
OKLaboklab(32.47% 0.05 -0.11)
OKLCHoklch(32.47% 0.121 294.4)
XYZxyz(4.8896, 3.0277, 13.9597)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216A #516A21
analogous
#212D6A #3A216A #5F216A
triadic
#3A216A #6A3A21 #216A3A
tetradic
#3A216A #6A212D #516A21 #216A5F
square
#3A216A #6A212D #516A21 #216A5F
split-complementary
#3A216A #6A5F21 #2D6A21
monochromatic
#0D0717 #20123B #3A216A #543099 #6E41C4

Accessibility & contrast

On white

13.08
#3A216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A216A
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216A#FFFFFF#000000##FFFFFF
##3A216A1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#2D3242
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a216a;
/* rgb */ color: rgb(58, 33, 106);
/* oklch */ color: oklch(32.5% 0.121 294.4);
Tailwind
colors: {
  custom: {
    50: '#755e95',
    500: '#3a216a',
    950: '#000000',
  },
}
SCSS
$custom: #3a216a;
$custom-light: #755e95;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216a",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 260.548,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32473,
    "c": 0.12083,
    "h": 294.4
  },
  "luminance": 0.03028
}

Semantic roles & 50–950 ramp

primary
#3A216A
secondary
#819E49
accent
#DC4CAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A216A

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

Preview Lab → · Contrast checker → · Palette generator →

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