#3E1580#3E1580

#3E1580 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.162 H 292.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3E1580
RGBrgb(62, 21, 128)
HSLhsl(263, 72%, 29%)
HSVhsv(263, 84%, 50%)
CMYKcmyk(51.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.51, 43.35, -52.04)
CIE-LCHlch(20.51, 67.73, 309.79°)
OKLaboklab(33.47% 0.0622 -0.1495)
OKLCHoklch(33.47% 0.162 292.6)
XYZxyz(6.1500, 3.1188, 20.6958)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1580 #578015
analogous
#152180 #3E1580 #741580
triadic
#3E1580 #803E15 #15803E
tetradic
#3E1580 #801521 #578015 #158074
square
#3E1580 #801521 #578015 #158074
split-complementary
#3E1580 #807415 #218015
monochromatic
#0D041A #250C4B #3E1580 #571EB5 #7432DD

Accessibility & contrast

On white

12.93
#3E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1580
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1580#FFFFFF#000000##FFFFFF
##3E15801.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#28354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1580;
/* rgb */ color: rgb(62, 21, 128);
/* oklch */ color: oklch(33.5% 0.162 292.6);
Tailwind
colors: {
  custom: {
    50: '#7b59a6',
    500: '#3e1580',
    950: '#000000',
  },
}
SCSS
$custom: #3e1580;
$custom-light: #7b59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1580",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 262.991,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33467,
    "c": 0.16189,
    "h": 292.6
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#3E1580
secondary
#87B53C
accent
#EF39A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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