#3E1978#3E1978

#3E1978 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.149 H 294.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3E1978
RGBrgb(62, 25, 120)
HSLhsl(263, 66%, 28%)
HSVhsv(263, 79%, 47%)
CMYKcmyk(48.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(20.34, 39.33, -47.22)
CIE-LCHlch(20.34, 61.46, 309.79°)
OKLaboklab(33.11% 0.0616 -0.1354)
OKLCHoklch(33.11% 0.149 294.5)
XYZxyz(5.7235, 3.0753, 18.0577)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1978 #537819
analogous
#192478 #3E1978 #6D1978
triadic
#3E1978 #783E19 #19783E
tetradic
#3E1978 #781924 #537819 #19786D
square
#3E1978 #781924 #537819 #19786D
split-complementary
#3E1978 #786D19 #247819
monochromatic
#0D0519 #240E45 #3E1978 #5824AB #7436D5

Accessibility & contrast

On white

13.00
#3E1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1978
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1978#FFFFFF#000000##FFFFFF
##3E19781.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2D3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1978;
/* rgb */ color: rgb(62, 25, 120);
/* oklch */ color: oklch(33.1% 0.149 294.5);
Tailwind
colors: {
  custom: {
    50: '#7a5aa0',
    500: '#3e1978',
    950: '#000000',
  },
}
SCSS
$custom: #3e1978;
$custom-light: #7a5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1978",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 263.368,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33107,
    "c": 0.14876,
    "h": 294.5
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#3E1978
secondary
#82AD40
accent
#E83FA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1978

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

Preview Lab → · Contrast checker → · Palette generator →

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