#3E217C#3E217C

#3E217C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.144 H 291.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3E217C
RGBrgb(62, 33, 124)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 73%, 49%)
CMYKcmyk(50%, 73.4%, 0%, 51.4%)
CIE-LABlab(22.18, 36.33, -46.76)
CIE-LCHlch(22.18, 59.22, 307.85°)
OKLaboklab(34.52% 0.0531 -0.1341)
OKLCHoklch(34.52% 0.144 291.6)
XYZxyz(6.1675, 3.5669, 19.4284)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217C #5F7C21
analogous
#21317C #3E217C #6B217C
triadic
#3E217C #7C3E21 #217C3E
tetradic
#3E217C #7C2131 #5F7C21 #217C6B
square
#3E217C #7C2131 #5F7C21 #217C6B
split-complementary
#3E217C #7C6B21 #317C21
monochromatic
#0E071B #26144C #3E217C #562EAC #7349CF

Accessibility & contrast

On white

12.26
#3E217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E217C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217C#FFFFFF#000000##FFFFFF
##3E217C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#2A384C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e217c;
/* rgb */ color: rgb(62, 33, 124);
/* oklch */ color: oklch(34.5% 0.144 291.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fa3',
    500: '#3e217c',
    950: '#000000',
  },
}
SCSS
$custom: #3e217c;
$custom-light: #7a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217c",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 259.121,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34522,
    "c": 0.14422,
    "h": 291.6
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#3E217C
secondary
#8FAF4A
accent
#E147B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217C

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

Preview Lab → · Contrast checker → · Palette generator →

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