#3E217D#3E217D

#3E217D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.145 H 291.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3E217D
RGBrgb(62, 33, 125)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 74%, 49%)
CMYKcmyk(50.4%, 73.6%, 0%, 51%)
CIE-LABlab(22.27, 36.63, -47.25)
CIE-LCHlch(22.27, 59.78, 307.79°)
OKLaboklab(34.61% 0.0529 -0.1355)
OKLCHoklch(34.61% 0.145 291.3)
XYZxyz(6.2311, 3.5923, 19.7631)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217D #607D21
analogous
#21327D #3E217D #6C217D
triadic
#3E217D #7D3E21 #217D3E
tetradic
#3E217D #7D2132 #607D21 #217D6C
square
#3E217D #7D2132 #607D21 #217D6C
split-complementary
#3E217D #7D6C21 #327D21
monochromatic
#0E071C #26144D #3E217D #562EAD #7349CF

Accessibility & contrast

On white

12.22
#3E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E217D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217D#FFFFFF#000000##FFFFFF
##3E217D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e217d;
/* rgb */ color: rgb(62, 33, 125);
/* oklch */ color: oklch(34.6% 0.145 291.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fa3',
    500: '#3e217d',
    950: '#000000',
  },
}
SCSS
$custom: #3e217d;
$custom-light: #7a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217d",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 258.913,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34614,
    "c": 0.14548,
    "h": 291.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#3E217D
secondary
#90B04A
accent
#E146B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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