#3E1D99#3E1D99

#3E1D99 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.183 H 285.3°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3E1D99
RGBrgb(62, 29, 153)
HSLhsl(256, 68%, 36%)
HSVhsv(256, 81%, 60%)
CMYKcmyk(59.5%, 81%, 0%, 40%)
CIE-LABlab(24.33, 46.87, -61.34)
CIE-LCHlch(24.33, 77.20, 307.38°)
OKLaboklab(36.89% 0.0482 -0.1767)
OKLCHoklch(36.89% 0.183 285.3)
XYZxyz(8.1740, 4.2023, 30.5112)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1D99 #78991D
analogous
#1D3A99 #3E1D99 #7C1D99
triadic
#3E1D99 #993E1D #1D993E
tetradic
#3E1D99 #991D3A #78991D #1D997C
square
#3E1D99 #991D3A #78991D #1D997C
split-complementary
#3E1D99 #997C1D #3A991D
monochromatic
#140932 #291366 #3E1D99 #5327CC #7752DE

Accessibility & contrast

On white

11.41
#3E1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1D99
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1D99#FFFFFF#000000##FFFFFF
##3E1D991.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#09425B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e1d99;
/* rgb */ color: rgb(62, 29, 153);
/* oklch */ color: oklch(36.9% 0.183 285.3);
Tailwind
colors: {
  custom: {
    50: '#7f5eb8',
    500: '#3e1d99',
    950: '#000000',
  },
}
SCSS
$custom: #3e1d99;
$custom-light: #7f5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1d99",
  "rgb": {
    "r": 62,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 255.968,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.18321,
    "h": 285.3
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#3E1D99
secondary
#A3C151
accent
#EB3DBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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