#3E1D7F#3E1D7F

#3E1D7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.153 H 291.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3E1D7F
RGBrgb(62, 29, 127)
HSLhsl(260, 63%, 31%)
HSVhsv(260, 77%, 50%)
CMYKcmyk(51.2%, 77.2%, 0%, 50.2%)
CIE-LABlab(21.71, 39.34, -49.44)
CIE-LCHlch(21.71, 63.19, 308.51°)
OKLaboklab(34.27% 0.0561 -0.1419)
OKLCHoklch(34.27% 0.153 291.6)
XYZxyz(6.2557, 3.4349, 20.4080)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D7F #5E7F1D
analogous
#1D2D7F #3E1D7F #6F1D7F
triadic
#3E1D7F #7F3E1D #1D7F3E
tetradic
#3E1D7F #7F1D2D #5E7F1D #1D7F6F
square
#3E1D7F #7F1D2D #5E7F1D #1D7F6F
split-complementary
#3E1D7F #7F6F1D #2D7F1D
monochromatic
#0D061B #26124D #3E1D7F #5628B1 #7342D4

Accessibility & contrast

On white

12.45
#3E1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D7F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D7F#FFFFFF#000000##FFFFFF
##3E1D7F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#28384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1d7f;
/* rgb */ color: rgb(62, 29, 127);
/* oklch */ color: oklch(34.3% 0.153 291.6);
Tailwind
colors: {
  custom: {
    50: '#7b5da5',
    500: '#3e1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d7f;
$custom-light: #7b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d7f",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 260.204,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.15264,
    "h": 291.6
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#3E1D7F
secondary
#8EB245
accent
#E642AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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