#3A216C#3A216C

#3A216C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.6% C 0.123 H 293.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3A216C
RGBrgb(58, 33, 108)
HSLhsl(260, 53%, 28%)
HSVhsv(260, 69%, 42%)
CMYKcmyk(46.3%, 69.4%, 0%, 57.6%)
CIE-LABlab(20.32, 30.72, -39.54)
CIE-LCHlch(20.32, 50.08, 307.85°)
OKLaboklab(32.65% 0.0497 -0.113)
OKLCHoklch(32.65% 0.123 293.7)
XYZxyz(4.9948, 3.0698, 14.5138)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A216C #536C21
analogous
#212E6C #3A216C #5F216C
triadic
#3A216C #6C3A21 #216C3A
tetradic
#3A216C #6C212E #536C21 #216C5F
square
#3A216C #6C212E #536C21 #216C5F
split-complementary
#3A216C #6C5F21 #2E6C21
monochromatic
#0D0717 #21133D #3A216C #532F9B #6E42C5

Accessibility & contrast

On white

13.01
#3A216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A216C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A216C#FFFFFF#000000##FFFFFF
##3A216C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#2C3343
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a216c;
/* rgb */ color: rgb(58, 33, 108);
/* oklch */ color: oklch(32.6% 0.123 293.7);
Tailwind
colors: {
  custom: {
    50: '#755e97',
    500: '#3a216c',
    950: '#000000',
  },
}
SCSS
$custom: #3a216c;
$custom-light: #755e97;
$custom-dark: #000000;
JSON
{
  "hex": "#3a216c",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 260,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.12348,
    "h": 293.7
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#3A216C
secondary
#83A049
accent
#DD4BAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A216C

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

Preview Lab → · Contrast checker → · Palette generator →

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