#3E1778#3E1778

#3E1778 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.151 H 294.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3E1778
RGBrgb(62, 23, 120)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 47%)
CMYKcmyk(48.3%, 80.8%, 0%, 52.9%)
CIE-LABlab(20.02, 40.27, -47.76)
CIE-LCHlch(20.02, 62.47, 310.14°)
OKLaboklab(32.88% 0.0633 -0.137)
OKLCHoklch(32.88% 0.151 294.8)
XYZxyz(5.6822, 2.9928, 18.0439)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1778 #517817
analogous
#172078 #3E1778 #6E1778
triadic
#3E1778 #783E17 #17783E
tetradic
#3E1778 #781720 #517817 #17786E
square
#3E1778 #781720 #517817 #17786E
split-complementary
#3E1778 #786E17 #207817
monochromatic
#0D051A #230D45 #3E1778 #5921AB #7432D8

Accessibility & contrast

On white

13.14
#3E1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1778
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1778#FFFFFF#000000##FFFFFF
##3E17781.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2D3247
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1778;
/* rgb */ color: rgb(62, 23, 120);
/* oklch */ color: oklch(32.9% 0.151 294.8);
Tailwind
colors: {
  custom: {
    50: '#7a59a0',
    500: '#3e1778',
    950: '#000000',
  },
}
SCSS
$custom: #3e1778;
$custom-light: #7a59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1778",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 264.124,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32878,
    "c": 0.1509,
    "h": 294.8
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#3E1778
secondary
#80AD3E
accent
#EB3DA5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1778

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

Preview Lab → · Contrast checker → · Palette generator →

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