#3E0842#3E0842

#3E0842 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.110 H 325.0°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#3E0842
RGBrgb(62, 8, 66)
HSLhsl(296, 78%, 15%)
HSVhsv(296, 88%, 26%)
CMYKcmyk(6.1%, 87.9%, 0%, 74.1%)
CIE-LABlab(13.18, 33.24, -22.72)
CIE-LCHlch(13.18, 40.26, 325.65°)
OKLaboklab(26.62% 0.0904 -0.0633)
OKLCHoklch(26.62% 0.11 325)
XYZxyz(3.0567, 1.5913, 5.2994)
Luminance0.0159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E0842 #0C4208
analogous
#210842 #3E0842 #420829
triadic
#3E0842 #423E08 #08423E
tetradic
#3E0842 #422108 #0C4208 #082942
square
#3E0842 #422108 #0C4208 #082942
split-complementary
#3E0842 #294208 #084221
monochromatic
#1A031B #1A031B #3E0842 #710F79 #A515AF

Accessibility & contrast

On white

15.93
#3E0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#3E0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E0842
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E0842#FFFFFF#000000##FFFFFF
##3E08421.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E44
Deuteranopia (green-blind)
#152441
Tritanopia (blue-blind)
#401325
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3e0842;
/* rgb */ color: rgb(62, 8, 66);
/* oklch */ color: oklch(26.6% 0.110 325.0);
Tailwind
colors: {
  custom: {
    50: '#764f77',
    500: '#3e0842',
    950: '#000000',
  },
}
SCSS
$custom: #3e0842;
$custom-light: #764f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3e0842",
  "rgb": {
    "r": 62,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 295.862,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26616,
    "c": 0.11033,
    "h": 325
  },
  "luminance": 0.01591
}

Semantic roles & 50–950 ramp

primary
#3E0842
secondary
#2C8025
accent
#F53340
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #3E0842

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

Preview Lab → · Contrast checker → · Palette generator →

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