#3E0542#3E0542

#3E0542 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.3% C 0.114 H 325.1°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#3E0542
RGBrgb(62, 5, 66)
HSLhsl(296, 86%, 14%)
HSVhsv(296, 92%, 26%)
CMYKcmyk(6.1%, 92.4%, 0%, 74.1%)
CIE-LABlab(12.77, 34.41, -23.36)
CIE-LCHlch(12.77, 41.59, 325.83°)
OKLaboklab(26.33% 0.0936 -0.0652)
OKLCHoklch(26.33% 0.114 325.1)
XYZxyz(3.0242, 1.5262, 5.2885)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0542 #094205
analogous
#200542 #3E0542 #420528
triadic
#3E0542 #423E05 #05423E
tetradic
#3E0542 #422005 #094205 #052842
square
#3E0542 #422005 #094205 #052842
split-complementary
#3E0542 #284205 #054220
monochromatic
#1B021C #1B021C #3E0542 #73097B #A90EB4

Accessibility & contrast

On white

16.09
#3E0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3E0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E0542
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0542#FFFFFF#000000##FFFFFF
##3E05421.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#132341
Tritanopia (blue-blind)
#401124
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3e0542;
/* rgb */ color: rgb(62, 5, 66);
/* oklch */ color: oklch(26.3% 0.114 325.1);
Tailwind
colors: {
  custom: {
    50: '#764e77',
    500: '#3e0542',
    950: '#000000',
  },
}
SCSS
$custom: #3e0542;
$custom-light: #764e77;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0542",
  "rgb": {
    "r": 62,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 296.066,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26331,
    "c": 0.11405,
    "h": 325.1
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#3E0542
secondary
#278220
accent
#FC2C39
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0542

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

Preview Lab → · Contrast checker → · Palette generator →

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