#3E217F#3E217F

#3E217F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.148 H 290.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3E217F
RGBrgb(62, 33, 127)
HSLhsl(259, 59%, 31%)
HSVhsv(259, 74%, 50%)
CMYKcmyk(51.2%, 74%, 0%, 50.2%)
CIE-LABlab(22.46, 37.23, -48.22)
CIE-LCHlch(22.46, 60.92, 307.67°)
OKLaboklab(34.8% 0.0525 -0.1384)
OKLCHoklch(34.8% 0.148 290.8)
XYZxyz(6.3601, 3.6439, 20.4428)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E217F #627F21
analogous
#21337F #3E217F #6D217F
triadic
#3E217F #7F3E21 #217F3E
tetradic
#3E217F #7F2133 #627F21 #217F6D
square
#3E217F #7F2133 #627F21 #217F6D
split-complementary
#3E217F #7F6D21 #337F21
monochromatic
#0F081E #26144E #3E217F #562EB0 #744AD0

Accessibility & contrast

On white

12.15
#3E217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E217F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E217F#FFFFFF#000000##FFFFFF
##3E217F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#283A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e217f;
/* rgb */ color: rgb(62, 33, 127);
/* oklch */ color: oklch(34.8% 0.148 290.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fa5',
    500: '#3e217f',
    950: '#000000',
  },
}
SCSS
$custom: #3e217f;
$custom-light: #7a5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e217f",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 258.511,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.348,
    "c": 0.14798,
    "h": 290.8
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#3E217F
secondary
#92B24A
accent
#E246B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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