#3E157E#3E157E

#3E157E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.160 H 293.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3E157E
RGBrgb(62, 21, 126)
HSLhsl(263, 71%, 29%)
HSVhsv(263, 83%, 49%)
CMYKcmyk(50.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(20.31, 42.80, -51.11)
CIE-LCHlch(20.31, 66.66, 309.95°)
OKLaboklab(33.26% 0.0629 -0.1467)
OKLCHoklch(33.26% 0.16 293.2)
XYZxyz(6.0196, 3.0666, 20.0094)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E157E #557E15
analogous
#15207E #3E157E #73157E
triadic
#3E157E #7E3E15 #157E3E
tetradic
#3E157E #7E1520 #557E15 #157E73
square
#3E157E #7E1520 #557E15 #157E73
split-complementary
#3E157E #7E7315 #207E15
monochromatic
#0D041A #240C4A #3E157E #581EB2 #7431DD

Accessibility & contrast

On white

13.02
#3E157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E157E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E157E#FFFFFF#000000##FFFFFF
##3E157E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#29344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e157e;
/* rgb */ color: rgb(62, 21, 126);
/* oklch */ color: oklch(33.3% 0.160 293.2);
Tailwind
colors: {
  custom: {
    50: '#7b59a4',
    500: '#3e157e',
    950: '#000000',
  },
}
SCSS
$custom: #3e157e;
$custom-light: #7b59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e157e",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 263.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.15965,
    "h": 293.2
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#3E157E
secondary
#84B33C
accent
#EE3AA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E157E

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

Preview Lab → · Contrast checker → · Palette generator →

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