#3E0540#3E0540

#3E0540 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.2% C 0.112 H 326.6°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#3E0540
RGBrgb(62, 5, 64)
HSLhsl(298, 86%, 14%)
HSVhsv(298, 92%, 25%)
CMYKcmyk(3.1%, 92.2%, 0%, 74.9%)
CIE-LABlab(12.63, 34.02, -22.18)
CIE-LCHlch(12.63, 40.62, 326.90°)
OKLaboklab(26.18% 0.0938 -0.0617)
OKLCHoklch(26.18% 0.112 326.6)
XYZxyz(2.9662, 1.5031, 4.9834)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0540 #074005
analogous
#200540 #3E0540 #400524
triadic
#3E0540 #403E05 #05403E
tetradic
#3E0540 #402005 #074005 #052440
square
#3E0540 #402005 #074005 #052440
split-complementary
#3E0540 #244005 #054020
monochromatic
#1B021C #1B021C #3E0540 #750979 #AC0EB2

Accessibility & contrast

On white

16.15
#3E0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E0540
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0540#FFFFFF#000000##FFFFFF
##3E05401.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#15233F
Tritanopia (blue-blind)
#401023
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3e0540;
/* rgb */ color: rgb(62, 5, 64);
/* oklch */ color: oklch(26.2% 0.112 326.6);
Tailwind
colors: {
  custom: {
    50: '#764e75',
    500: '#3e0540',
    950: '#000000',
  },
}
SCSS
$custom: #3e0540;
$custom-light: #764e75;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0540",
  "rgb": {
    "r": 62,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 297.966,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2618,
    "c": 0.1123,
    "h": 326.6
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#3E0540
secondary
#248120
accent
#FC2C33
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0540

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

Preview Lab → · Contrast checker → · Palette generator →

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