#3E1148#3E1148

#3E1148 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.105 H 319.8°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#3E1148
RGBrgb(62, 17, 72)
HSLhsl(289, 62%, 17%)
HSVhsv(289, 76%, 28%)
CMYKcmyk(13.9%, 76.4%, 0%, 71.8%)
CIE-LABlab(14.92, 30.78, -24.13)
CIE-LCHlch(14.92, 39.11, 321.91°)
OKLaboklab(27.99% 0.0798 -0.0675)
OKLCHoklch(27.99% 0.105 319.8)
XYZxyz(3.3566, 1.8931, 6.3182)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1148 #1B4811
analogous
#231148 #3E1148 #481137
triadic
#3E1148 #483E11 #11483E
tetradic
#3E1148 #482311 #1B4811 #113748
square
#3E1148 #482311 #1B4811 #113748
split-complementary
#3E1148 #374811 #114823
monochromatic
#150619 #150619 #3E1148 #691D7A #9328AB

Accessibility & contrast

On white

15.23
#3E1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3E1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1148
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1148#FFFFFF#000000##FFFFFF
##3E11481.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#152747
Tritanopia (blue-blind)
#3E1B2B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3e1148;
/* rgb */ color: rgb(62, 17, 72);
/* oklch */ color: oklch(28.0% 0.105 319.8);
Tailwind
colors: {
  custom: {
    50: '#76547b',
    500: '#3e1148',
    950: '#000000',
  },
}
SCSS
$custom: #3e1148;
$custom-light: #76547b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1148",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 289.091,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27993,
    "c": 0.10456,
    "h": 319.8
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#3E1148
secondary
#428233
accent
#E54360
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #3E1148

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

Preview Lab → · Contrast checker → · Palette generator →

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