#3E217A#3E217A

#3E217A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.142 H 292.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3E217A
RGBrgb(62, 33, 122)
HSLhsl(260, 57%, 30%)
HSVhsv(260, 73%, 48%)
CMYKcmyk(49.2%, 73%, 0%, 52.2%)
CIE-LABlab(22.00, 35.74, -45.78)
CIE-LCHlch(22.00, 58.08, 307.98°)
OKLaboklab(34.34% 0.0535 -0.1312)
OKLCHoklch(34.34% 0.142 292.2)
XYZxyz(6.0423, 3.5168, 18.7690)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217A #5D7A21
analogous
#21307A #3E217A #6A217A
triadic
#3E217A #7A3E21 #217A3E
tetradic
#3E217A #7A2130 #5D7A21 #217A6A
square
#3E217A #7A2130 #5D7A21 #217A6A
split-complementary
#3E217A #7A6A21 #307A21
monochromatic
#0D071A #26144A #3E217A #562EAA #7348CD

Accessibility & contrast

On white

12.33
#3E217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E217A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217A#FFFFFF#000000##FFFFFF
##3E217A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e217a;
/* rgb */ color: rgb(62, 33, 122);
/* oklch */ color: oklch(34.3% 0.142 292.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fa1',
    500: '#3e217a',
    950: '#000000',
  },
}
SCSS
$custom: #3e217a;
$custom-light: #7a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217a",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 259.551,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34338,
    "c": 0.14171,
    "h": 292.2
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#3E217A
secondary
#8DAD4A
accent
#E147AF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217A

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

Preview Lab → · Contrast checker → · Palette generator →

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