#3E217E#3E217E

#3E217E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.147 H 291.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3E217E
RGBrgb(62, 33, 126)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 74%, 49%)
CMYKcmyk(50.8%, 73.8%, 0%, 50.6%)
CIE-LABlab(22.37, 36.93, -47.73)
CIE-LCHlch(22.37, 60.35, 307.73°)
OKLaboklab(34.71% 0.0527 -0.1369)
OKLCHoklch(34.71% 0.147 291)
XYZxyz(6.2953, 3.6180, 20.1013)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217E #617E21
analogous
#21327E #3E217E #6C217E
triadic
#3E217E #7E3E21 #217E3E
tetradic
#3E217E #7E2132 #617E21 #217E6C
square
#3E217E #7E2132 #617E21 #217E6C
split-complementary
#3E217E #7E6C21 #327E21
monochromatic
#0E081D #26144E #3E217E #562EAE #744AD0

Accessibility & contrast

On white

12.18
#3E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E217E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217E#FFFFFF#000000##FFFFFF
##3E217E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#29394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e217e;
/* rgb */ color: rgb(62, 33, 126);
/* oklch */ color: oklch(34.7% 0.147 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fa4',
    500: '#3e217e',
    950: '#000000',
  },
}
SCSS
$custom: #3e217e;
$custom-light: #7a5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217e",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 258.71,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.14673,
    "h": 291
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#3E217E
secondary
#91B14A
accent
#E246B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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