#3E216B#3E216B

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

Color values

HEX#3E216B
RGBrgb(62, 33, 107)
HSLhsl(264, 53%, 27%)
HSVhsv(264, 69%, 42%)
CMYKcmyk(42.1%, 69.2%, 0%, 58%)
CIE-LABlab(20.73, 31.32, -38.22)
CIE-LCHlch(20.73, 49.41, 309.33°)
OKLaboklab(33.02% 0.056 -0.109)
OKLCHoklch(33.02% 0.123 297.2)
XYZxyz(5.1836, 3.1733, 14.2465)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E216B #4E6B21
analogous
#21296B #3E216B #63216B
triadic
#3E216B #6B3E21 #216B3E
tetradic
#3E216B #6B2129 #4E6B21 #216B63
square
#3E216B #6B2129 #4E6B21 #216B63
split-complementary
#3E216B #6B6321 #296B21
monochromatic
#0E0717 #23133C #3E216B #592F9A #7542C5

Accessibility & contrast

On white

12.85
#3E216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E216B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E216B#FFFFFF#000000##FFFFFF
##3E216B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#333243
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e216b;
/* rgb */ color: rgb(62, 33, 107);
/* oklch */ color: oklch(33.0% 0.123 297.2);
Tailwind
colors: {
  custom: {
    50: '#775e96',
    500: '#3e216b',
    950: '#000000',
  },
}
SCSS
$custom: #3e216b;
$custom-light: #775e96;
$custom-dark: #000000;
JSON
{
  "hex": "#3e216b",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 263.514,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33022,
    "c": 0.12254,
    "h": 297.2
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#3E216B
secondary
#7D9F49
accent
#DC4CA4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E216B

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

Preview Lab → · Contrast checker → · Palette generator →

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