#3E1D95#3E1D95

#3E1D95 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.179 H 286.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3E1D95
RGBrgb(62, 29, 149)
HSLhsl(257, 67%, 35%)
HSVhsv(257, 81%, 58%)
CMYKcmyk(58.4%, 80.5%, 0%, 41.6%)
CIE-LABlab(23.91, 45.72, -59.57)
CIE-LCHlch(23.91, 75.09, 307.50°)
OKLaboklab(36.48% 0.0495 -0.1716)
OKLCHoklch(36.48% 0.179 286.1)
XYZxyz(7.8492, 4.0723, 28.8004)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D95 #74951D
analogous
#1D3895 #3E1D95 #7A1D95
triadic
#3E1D95 #953E1D #1D953E
tetradic
#3E1D95 #951D38 #74951D #1D957A
square
#3E1D95 #951D38 #74951D #1D957A
split-complementary
#3E1D95 #957A1D #38951D
monochromatic
#13092F #291362 #3E1D95 #5327C8 #7650DD

Accessibility & contrast

On white

11.57
#3E1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3E1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1D95
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D95#FFFFFF#000000##FFFFFF
##3E1D951.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#114059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e1d95;
/* rgb */ color: rgb(62, 29, 149);
/* oklch */ color: oklch(36.5% 0.179 286.1);
Tailwind
colors: {
  custom: {
    50: '#7e5eb5',
    500: '#3e1d95',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d95;
$custom-light: #7e5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d95",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 256.5,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36475,
    "c": 0.17859,
    "h": 286.1
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#3E1D95
secondary
#A0C04E
accent
#EA3DBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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