#3E1171#3E1171

#3E1171 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.149 H 298.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1171
RGBrgb(62, 17, 113)
HSLhsl(268, 74%, 25%)
HSVhsv(268, 85%, 44%)
CMYKcmyk(45.1%, 85%, 0%, 55.7%)
CIE-LABlab(18.44, 40.96, -45.83)
CIE-LCHlch(18.44, 61.47, 311.78°)
OKLaboklab(31.57% 0.0705 -0.1312)
OKLCHoklch(31.57% 0.149 298.2)
XYZxyz(5.1669, 2.6172, 15.8525)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1171 #447111
analogous
#111471 #3E1171 #6E1171
triadic
#3E1171 #713E11 #11713E
tetradic
#3E1171 #711114 #447111 #11716E
square
#3E1171 #711114 #447111 #11716E
split-complementary
#3E1171 #716E11 #147111
monochromatic
#0F041B #21093C #3E1171 #5B19A6 #7821DB

Accessibility & contrast

On white

13.78
#3E1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3E1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1171
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1171#FFFFFF#000000##FFFFFF
##3E11711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#312D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1171;
/* rgb */ color: rgb(62, 17, 113);
/* oklch */ color: oklch(31.6% 0.149 298.2);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3e1171',
    950: '#000000',
  },
}
SCSS
$custom: #3e1171;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1171",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 268.125,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31574,
    "c": 0.14898,
    "h": 298.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#3E1171
secondary
#72A836
accent
#F1379A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1171

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

Preview Lab → · Contrast checker → · Palette generator →

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