#3E157F#3E157F

#3E157F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.161 H 292.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#3E157F
RGBrgb(62, 21, 127)
HSLhsl(263, 72%, 29%)
HSVhsv(263, 83%, 50%)
CMYKcmyk(51.2%, 83.5%, 0%, 50.2%)
CIE-LABlab(20.41, 43.07, -51.57)
CIE-LCHlch(20.41, 67.19, 309.87°)
OKLaboklab(33.37% 0.0625 -0.1481)
OKLCHoklch(33.37% 0.161 292.9)
XYZxyz(6.0845, 3.0926, 20.3509)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E157F #567F15
analogous
#15217F #3E157F #73157F
triadic
#3E157F #7F3E15 #157F3E
tetradic
#3E157F #7F1521 #567F15 #157F73
square
#3E157F #7F1521 #567F15 #157F73
split-complementary
#3E157F #7F7315 #217F15
monochromatic
#0D041A #240C4A #3E157F #581EB4 #7431DD

Accessibility & contrast

On white

12.97
#3E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E157F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E157F#FFFFFF#000000##FFFFFF
##3E157F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#29344B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e157f;
/* rgb */ color: rgb(62, 21, 127);
/* oklch */ color: oklch(33.4% 0.161 292.9);
Tailwind
colors: {
  custom: {
    50: '#7b59a5',
    500: '#3e157f',
    950: '#000000',
  },
}
SCSS
$custom: #3e157f;
$custom-light: #7b59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e157f",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 263.208,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33365,
    "c": 0.16077,
    "h": 292.9
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#3E157F
secondary
#86B43C
accent
#EE39A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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