#3E1E97#3E1E97

#3E1E97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 285.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3E1E97
RGBrgb(62, 30, 151)
HSLhsl(256, 67%, 35%)
HSVhsv(256, 80%, 59%)
CMYKcmyk(58.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(24.28, 45.83, -60.20)
CIE-LCHlch(24.28, 75.66, 307.28°)
OKLaboklab(36.79% 0.0482 -0.1734)
OKLCHoklch(36.79% 0.18 285.5)
XYZxyz(8.0351, 4.1866, 29.6568)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E97 #77971E
analogous
#1E3A97 #3E1E97 #7A1E97
triadic
#3E1E97 #973E1E #1E973E
tetradic
#3E1E97 #971E3A #77971E #1E977A
square
#3E1E97 #971E3A #77971E #1E977A
split-complementary
#3E1E97 #977A1E #3A971E
monochromatic
#140A31 #291464 #3E1E97 #5328CA #7753DD

Accessibility & contrast

On white

11.43
#3E1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E97
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E97#FFFFFF#000000##FFFFFF
##3E1E971.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#0D425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1e97;
/* rgb */ color: rgb(62, 30, 151);
/* oklch */ color: oklch(36.8% 0.180 285.5);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3e1e97',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e97;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e97",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 255.868,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36794,
    "c": 0.17999,
    "h": 285.5
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#3E1E97
secondary
#A3C051
accent
#EA3EBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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