#3E1D7E#3E1D7E

#3E1D7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.151 H 291.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3E1D7E
RGBrgb(62, 29, 126)
HSLhsl(260, 63%, 30%)
HSVhsv(260, 77%, 49%)
CMYKcmyk(50.8%, 77%, 0%, 50.6%)
CIE-LABlab(21.61, 39.05, -48.97)
CIE-LCHlch(21.61, 62.63, 308.57°)
OKLaboklab(34.17% 0.0564 -0.1405)
OKLCHoklch(34.17% 0.151 291.9)
XYZxyz(6.1908, 3.4090, 20.0664)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D7E #5D7E1D
analogous
#1D2D7E #3E1D7E #6E1D7E
triadic
#3E1D7E #7E3E1D #1D7E3E
tetradic
#3E1D7E #7E1D2D #5D7E1D #1D7E6E
square
#3E1D7E #7E1D2D #5D7E1D #1D7E6E
split-complementary
#3E1D7E #7E6E1D #2D7E1D
monochromatic
#0D061B #26124C #3E1D7E #5628B0 #7342D3

Accessibility & contrast

On white

12.49
#3E1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D7E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D7E#FFFFFF#000000##FFFFFF
##3E1D7E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#29374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1d7e;
/* rgb */ color: rgb(62, 29, 126);
/* oklch */ color: oklch(34.2% 0.151 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a5da4',
    500: '#3e1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d7e;
$custom-light: #7a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d7e",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 260.412,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34174,
    "c": 0.15143,
    "h": 291.9
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#3E1D7E
secondary
#8DB145
accent
#E642AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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