#3E1681#3E1681

#3E1681 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.162 H 292.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3E1681
RGBrgb(62, 22, 129)
HSLhsl(262, 71%, 30%)
HSVhsv(262, 83%, 51%)
CMYKcmyk(51.9%, 82.9%, 0%, 49.4%)
CIE-LABlab(20.76, 43.20, -52.26)
CIE-LCHlch(20.76, 67.80, 309.57°)
OKLaboklab(33.67% 0.0611 -0.1501)
OKLCHoklch(33.67% 0.162 292.1)
XYZxyz(6.2348, 3.1827, 21.0504)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1681 #598116
analogous
#162381 #3E1681 #741681
triadic
#3E1681 #813E16 #16813E
tetradic
#3E1681 #811623 #598116 #168174
square
#3E1681 #811623 #598116 #168174
split-complementary
#3E1681 #817416 #238116
monochromatic
#0D041A #250D4D #3E1681 #571FB5 #7435DD

Accessibility & contrast

On white

12.83
#3E1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1681
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1681#FFFFFF#000000##FFFFFF
##3E16811.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#27354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1681;
/* rgb */ color: rgb(62, 22, 129);
/* oklch */ color: oklch(33.7% 0.162 292.1);
Tailwind
colors: {
  custom: {
    50: '#7b59a7',
    500: '#3e1681',
    950: '#000000',
  },
}
SCSS
$custom: #3e1681;
$custom-light: #7b59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1681",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 262.43,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3367,
    "c": 0.1621,
    "h": 292.1
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#3E1681
secondary
#89B63D
accent
#EE3AAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1681

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

Preview Lab → · Contrast checker → · Palette generator →

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