#3E1996#3E1996

#3E1996 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.183 H 286.4°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#3E1996
RGBrgb(62, 25, 150)
HSLhsl(258, 71%, 34%)
HSVhsv(258, 83%, 59%)
CMYKcmyk(58.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(23.41, 47.77, -61.02)
CIE-LCHlch(23.41, 77.49, 308.06°)
OKLaboklab(36.16% 0.0517 -0.1757)
OKLCHoklch(36.16% 0.183 286.4)
XYZxyz(7.8376, 3.9209, 29.1921)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1996 #719619
analogous
#193396 #3E1996 #7D1996
triadic
#3E1996 #963E19 #19963E
tetradic
#3E1996 #961933 #719619 #19967D
square
#3E1996 #961933 #719619 #19967D
split-complementary
#3E1996 #967D19 #339619
monochromatic
#13082D #281062 #3E1996 #5422CA #7649E1

Accessibility & contrast

On white

11.77
#3E1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1996
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1996#FFFFFF#000000##FFFFFF
##3E19961.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#103F59
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1996;
/* rgb */ color: rgb(62, 25, 150);
/* oklch */ color: oklch(36.2% 0.183 286.4);
Tailwind
colors: {
  custom: {
    50: '#7f5cb6',
    500: '#3e1996',
    950: '#000000',
  },
}
SCSS
$custom: #3e1996;
$custom-light: #7f5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1996",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 257.76,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3616,
    "c": 0.18319,
    "h": 286.4
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#3E1996
secondary
#9EC249
accent
#EE3AB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1996

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

Preview Lab → · Contrast checker → · Palette generator →

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