#3D216C#3D216C

#3D216C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.124 H 296.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3D216C
RGBrgb(61, 33, 108)
HSLhsl(262, 53%, 28%)
HSVhsv(262, 69%, 42%)
CMYKcmyk(43.5%, 69.4%, 0%, 57.6%)
CIE-LABlab(20.68, 31.38, -38.94)
CIE-LCHlch(20.68, 50.01, 308.87°)
OKLaboklab(32.99% 0.0544 -0.1111)
OKLCHoklch(32.99% 0.124 296.1)
XYZxyz(5.1744, 3.1624, 14.5222)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D216C #506C21
analogous
#212B6C #3D216C #62216C
triadic
#3D216C #6C3D21 #216C3D
tetradic
#3D216C #6C212B #506C21 #216C62
square
#3D216C #6C212B #506C21 #216C62
split-complementary
#3D216C #6C6221 #2B6C21
monochromatic
#0D0717 #23133D #3D216C #572F9B #7342C5

Accessibility & contrast

On white

12.86
#3D216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D216C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D216C#FFFFFF#000000##FFFFFF
##3D216C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#313343
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d216c;
/* rgb */ color: rgb(61, 33, 108);
/* oklch */ color: oklch(33.0% 0.124 296.1);
Tailwind
colors: {
  custom: {
    50: '#775e97',
    500: '#3d216c',
    950: '#000000',
  },
}
SCSS
$custom: #3d216c;
$custom-light: #775e97;
$custom-dark: #000000;
JSON
{
  "hex": "#3d216c",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 262.4,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32989,
    "c": 0.12373,
    "h": 296.1
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#3D216C
secondary
#7FA049
accent
#DD4BA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D216C

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

Preview Lab → · Contrast checker → · Palette generator →

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