#3E1152#3E1152

#3E1152 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.115 H 313.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#3E1152
RGBrgb(62, 17, 82)
HSLhsl(282, 66%, 19%)
HSVhsv(282, 79%, 32%)
CMYKcmyk(24.4%, 79.3%, 0%, 67.8%)
CIE-LABlab(15.67, 33.11, -29.79)
CIE-LCHlch(15.67, 44.54, 318.03°)
OKLaboklab(28.77% 0.0788 -0.0841)
OKLCHoklch(28.77% 0.115 313.1)
XYZxyz(3.7098, 2.0343, 8.1783)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1152 #255211
analogous
#1D1152 #3E1152 #521146
triadic
#3E1152 #523E11 #11523E
tetradic
#3E1152 #521D11 #255211 #114652
square
#3E1152 #521D11 #255211 #114652
split-complementary
#3E1152 #465211 #11521D
monochromatic
#130519 #18061F #3E1152 #641C85 #8B26B7

Accessibility & contrast

On white

14.93
#3E1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3E1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1152
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1152#FFFFFF#000000##FFFFFF
##3E11521.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#0B2851
Tritanopia (blue-blind)
#3C1F30
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3e1152;
/* rgb */ color: rgb(62, 17, 82);
/* oklch */ color: oklch(28.8% 0.115 313.1);
Tailwind
colors: {
  custom: {
    50: '#765483',
    500: '#3e1152',
    950: '#000000',
  },
}
SCSS
$custom: #3e1152;
$custom-light: #765483;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1152",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 281.538,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28768,
    "c": 0.11526,
    "h": 313.1
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#3E1152
secondary
#4F8B34
accent
#E93F73
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E1152

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

Preview Lab → · Contrast checker → · Palette generator →

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