#3E217B#3E217B

#3E217B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.143 H 291.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#3E217B
RGBrgb(62, 33, 123)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 73%, 48%)
CMYKcmyk(49.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(22.09, 36.04, -46.27)
CIE-LCHlch(22.09, 58.65, 307.91°)
OKLaboklab(34.43% 0.0533 -0.1327)
OKLCHoklch(34.43% 0.143 291.9)
XYZxyz(6.1046, 3.5417, 19.0970)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217B #5E7B21
analogous
#21317B #3E217B #6B217B
triadic
#3E217B #7B3E21 #217B3E
tetradic
#3E217B #7B2131 #5E7B21 #217B6B
square
#3E217B #7B2131 #5E7B21 #217B6B
split-complementary
#3E217B #7B6B21 #317B21
monochromatic
#0D071A #26144B #3E217B #562EAB #7348CE

Accessibility & contrast

On white

12.29
#3E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E217B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217B#FFFFFF#000000##FFFFFF
##3E217B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#2B384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e217b;
/* rgb */ color: rgb(62, 33, 123);
/* oklch */ color: oklch(34.4% 0.143 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a5fa2',
    500: '#3e217b',
    950: '#000000',
  },
}
SCSS
$custom: #3e217b;
$custom-light: #7a5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217b",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 259.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3443,
    "c": 0.14297,
    "h": 291.9
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#3E217B
secondary
#8EAE4A
accent
#E147AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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