#3E1042#3E1042

#3E1042 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.100 H 324.5°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#3E1042
RGBrgb(62, 16, 66)
HSLhsl(295, 61%, 16%)
HSVhsv(295, 76%, 26%)
CMYKcmyk(6.1%, 75.8%, 0%, 74.1%)
CIE-LABlab(14.33, 29.94, -20.87)
CIE-LCHlch(14.33, 36.50, 325.12°)
OKLaboklab(27.44% 0.0812 -0.058)
OKLCHoklch(27.44% 0.1 324.5)
XYZxyz(3.1552, 1.7883, 5.3322)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1042 #144210
analogous
#251042 #3E1042 #42102D
triadic
#3E1042 #423E10 #10423E
tetradic
#3E1042 #422510 #144210 #102D42
square
#3E1042 #422510 #144210 #102D42
split-complementary
#3E1042 #2D4210 #104225
monochromatic
#170619 #170619 #3E1042 #6C1C73 #9B28A5

Accessibility & contrast

On white

15.47
#3E1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3E1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1042
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1042#FFFFFF#000000##FFFFFF
##3E10421.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052143
Deuteranopia (green-blind)
#192641
Tritanopia (blue-blind)
#3F1827
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3e1042;
/* rgb */ color: rgb(62, 16, 66);
/* oklch */ color: oklch(27.4% 0.100 324.5);
Tailwind
colors: {
  custom: {
    50: '#755376',
    500: '#3e1042',
    950: '#000000',
  },
}
SCSS
$custom: #3e1042;
$custom-light: #755376;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1042",
  "rgb": {
    "r": 62,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 295.2,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27443,
    "c": 0.09983,
    "h": 324.5
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#3E1042
secondary
#387C32
accent
#E44451
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E1042

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

Preview Lab → · Contrast checker → · Palette generator →

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