#3E1D78#3E1D78

#3E1D78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.144 H 293.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3E1D78
RGBrgb(62, 29, 120)
HSLhsl(262, 61%, 29%)
HSVhsv(262, 76%, 47%)
CMYKcmyk(48.3%, 75.8%, 0%, 52.9%)
CIE-LABlab(21.05, 37.31, -46.06)
CIE-LCHlch(21.05, 59.28, 309.01°)
OKLaboklab(33.61% 0.0579 -0.132)
OKLCHoklch(33.61% 0.144 293.7)
XYZxyz(5.8152, 3.2588, 18.0883)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D78 #57781D
analogous
#1D2A78 #3E1D78 #6C1D78
triadic
#3E1D78 #783E1D #1D783E
tetradic
#3E1D78 #781D2A #57781D #1D786C
square
#3E1D78 #781D2A #57781D #1D786C
split-complementary
#3E1D78 #786C1D #2A781D
monochromatic
#0D0619 #251147 #3E1D78 #5729A9 #743FD1

Accessibility & contrast

On white

12.71
#3E1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D78
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D78#FFFFFF#000000##FFFFFF
##3E1D781.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1d78;
/* rgb */ color: rgb(62, 29, 120);
/* oklch */ color: oklch(33.6% 0.144 293.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ca0',
    500: '#3e1d78',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d78;
$custom-light: #7a5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d78",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 261.758,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33606,
    "c": 0.14417,
    "h": 293.7
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#3E1D78
secondary
#87AC45
accent
#E444AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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