#3E1166#3E1166

#3E1166 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.137 H 302.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#3E1166
RGBrgb(62, 17, 102)
HSLhsl(272, 71%, 23%)
HSVhsv(272, 83%, 40%)
CMYKcmyk(39.2%, 83.3%, 0%, 60%)
CIE-LABlab(17.39, 38.10, -40.38)
CIE-LCHlch(17.39, 55.52, 313.34°)
OKLaboklab(30.52% 0.0741 -0.1152)
OKLCHoklch(30.52% 0.137 302.7)
XYZxyz(4.5848, 2.3843, 12.7865)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1166 #396611
analogous
#131166 #3E1166 #661163
triadic
#3E1166 #663E11 #11663E
tetradic
#3E1166 #661311 #396611 #116366
square
#3E1166 #661311 #396611 #116366
split-complementary
#3E1166 #636611 #116613
monochromatic
#10041A #1E0832 #3E1166 #5E1A9A #7E22CF

Accessibility & contrast

On white

14.22
#3E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3E1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1166
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1166#FFFFFF#000000##FFFFFF
##3E11661.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#36283C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1166;
/* rgb */ color: rgb(62, 17, 102);
/* oklch */ color: oklch(30.5% 0.137 302.7);
Tailwind
colors: {
  custom: {
    50: '#785592',
    500: '#3e1166',
    950: '#000000',
  },
}
SCSS
$custom: #3e1166;
$custom-light: #785592;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1166",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 271.765,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30518,
    "c": 0.137,
    "h": 302.7
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#3E1166
secondary
#669E35
accent
#EE3A8F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1166

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

Preview Lab → · Contrast checker → · Palette generator →

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