#3E157C#3E157C

#3E157C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.157 H 293.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#3E157C
RGBrgb(62, 21, 124)
HSLhsl(264, 71%, 28%)
HSVhsv(264, 83%, 49%)
CMYKcmyk(50%, 83.1%, 0%, 51.4%)
CIE-LABlab(20.11, 42.25, -50.17)
CIE-LCHlch(20.11, 65.59, 310.11°)
OKLaboklab(33.06% 0.0636 -0.144)
OKLCHoklch(33.06% 0.157 293.8)
XYZxyz(5.8919, 3.0155, 19.3365)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E157C #537C15
analogous
#15207C #3E157C #71157C
triadic
#3E157C #7C3E15 #157C3E
tetradic
#3E157C #7C1520 #537C15 #157C71
square
#3E157C #7C1520 #537C15 #157C71
split-complementary
#3E157C #7C7115 #207C15
monochromatic
#0D041A #240C48 #3E157C #581EB0 #7430DC

Accessibility & contrast

On white

13.10
#3E157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E157C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E157C#FFFFFF#000000##FFFFFF
##3E157C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#2B3349
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e157c;
/* rgb */ color: rgb(62, 21, 124);
/* oklch */ color: oklch(33.1% 0.157 293.8);
Tailwind
colors: {
  custom: {
    50: '#7b58a3',
    500: '#3e157c',
    950: '#000000',
  },
}
SCSS
$custom: #3e157c;
$custom-light: #7b58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e157c",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 263.883,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33062,
    "c": 0.15741,
    "h": 293.8
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#3E157C
secondary
#82B13C
accent
#EE3AA6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E157C

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

Preview Lab → · Contrast checker → · Palette generator →

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