#3E1242#3E1242

#3E1242 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.097 H 324.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#3E1242
RGBrgb(62, 18, 66)
HSLhsl(295, 57%, 16%)
HSVhsv(295, 73%, 26%)
CMYKcmyk(6.1%, 72.7%, 0%, 74.1%)
CIE-LABlab(14.68, 28.97, -20.32)
CIE-LCHlch(14.68, 35.39, 324.95°)
OKLaboklab(27.69% 0.0786 -0.0564)
OKLCHoklch(27.69% 0.097 324.3)
XYZxyz(3.1862, 1.8503, 5.3425)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1242 #164212
analogous
#261242 #3E1242 #42122E
triadic
#3E1242 #423E12 #12423E
tetradic
#3E1242 #422612 #164212 #122E42
square
#3E1242 #422612 #164212 #122E42
split-complementary
#3E1242 #2E4212 #124226
monochromatic
#170718 #170718 #3E1242 #6B1F72 #982CA2

Accessibility & contrast

On white

15.33
#3E1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3E1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1242
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1242#FFFFFF#000000##FFFFFF
##3E12421.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082243
Deuteranopia (green-blind)
#1A2741
Tritanopia (blue-blind)
#3F1928
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3e1242;
/* rgb */ color: rgb(62, 18, 66);
/* oklch */ color: oklch(27.7% 0.097 324.3);
Tailwind
colors: {
  custom: {
    50: '#755476',
    500: '#3e1242',
    950: '#000000',
  },
}
SCSS
$custom: #3e1242;
$custom-light: #755476;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1242",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 295,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27693,
    "c": 0.09674,
    "h": 324.3
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#3E1242
secondary
#3B7B35
accent
#E04754
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3E1242

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

Preview Lab → · Contrast checker → · Palette generator →

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