#3E0440#3E0440

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

Color values

HEX#3E0440
RGBrgb(62, 4, 64)
HSLhsl(298, 88%, 13%)
HSVhsv(298, 94%, 25%)
CMYKcmyk(3.1%, 93.8%, 0%, 74.9%)
CIE-LABlab(12.49, 34.43, -22.40)
CIE-LCHlch(12.49, 41.08, 326.95°)
OKLaboklab(26.08% 0.0949 -0.0624)
OKLCHoklch(26.08% 0.114 326.7)
XYZxyz(2.9554, 1.4813, 4.9798)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0440 #064004
analogous
#200440 #3E0440 #400424
triadic
#3E0440 #403E04 #04403E
tetradic
#3E0440 #402004 #064004 #042440
square
#3E0440 #402004 #064004 #042440
split-complementary
#3E0440 #244004 #044020
monochromatic
#1C021D #1C021D #3E0440 #76087A #AE0BB3

Accessibility & contrast

On white

16.20
#3E0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3E0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E0440
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0440#FFFFFF#000000##FFFFFF
##3E04401.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#400F23
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3e0440;
/* rgb */ color: rgb(62, 4, 64);
/* oklch */ color: oklch(26.1% 0.114 326.7);
Tailwind
colors: {
  custom: {
    50: '#764d75',
    500: '#3e0440',
    950: '#000000',
  },
}
SCSS
$custom: #3e0440;
$custom-light: #764d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0440",
  "rgb": {
    "r": 62,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 298,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26083,
    "c": 0.1136,
    "h": 326.7
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#3E0440
secondary
#22811F
accent
#FE2931
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0440

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

Preview Lab → · Contrast checker → · Palette generator →

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