#3E1162#3E1162

#3E1162 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.133 H 304.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1162
RGBrgb(62, 17, 98)
HSLhsl(273, 70%, 23%)
HSVhsv(273, 83%, 38%)
CMYKcmyk(36.7%, 82.7%, 0%, 61.6%)
CIE-LABlab(17.02, 37.08, -38.33)
CIE-LCHlch(17.02, 53.33, 314.05°)
OKLaboklab(30.15% 0.0753 -0.1092)
OKLCHoklch(30.15% 0.133 304.6)
XYZxyz(4.3912, 2.3069, 11.7668)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1162 #356211
analogous
#151162 #3E1162 #62115E
triadic
#3E1162 #623E11 #11623E
tetradic
#3E1162 #621511 #356211 #115E62
square
#3E1162 #621511 #356211 #115E62
split-complementary
#3E1162 #5E6211 #116215
monochromatic
#10051A #1D082E #3E1162 #5F1A96 #8023CA

Accessibility & contrast

On white

14.37
#3E1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3E1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1162
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1162#FFFFFF#000000##FFFFFF
##3E11621.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#372639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1162;
/* rgb */ color: rgb(62, 17, 98);
/* oklch */ color: oklch(30.1% 0.133 304.6);
Tailwind
colors: {
  custom: {
    50: '#78558f',
    500: '#3e1162',
    950: '#000000',
  },
}
SCSS
$custom: #3e1162;
$custom-light: #78558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1162",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 273.333,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30149,
    "c": 0.13264,
    "h": 304.6
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#3E1162
secondary
#629A34
accent
#ED3B8A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1162

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

Preview Lab → · Contrast checker → · Palette generator →

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