#3E1252#3E1252

#3E1252 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.114 H 313.0°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#3E1252
RGBrgb(62, 18, 82)
HSLhsl(281, 64%, 20%)
HSVhsv(281, 78%, 32%)
CMYKcmyk(24.4%, 78%, 0%, 67.8%)
CIE-LABlab(15.83, 32.65, -29.52)
CIE-LCHlch(15.83, 44.02, 317.88°)
OKLaboklab(28.89% 0.0776 -0.0833)
OKLCHoklch(28.89% 0.114 313)
XYZxyz(3.7256, 2.0661, 8.1835)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1252 #265212
analogous
#1E1252 #3E1252 #521246
triadic
#3E1252 #523E12 #12523E
tetradic
#3E1252 #521E12 #265212 #124652
square
#3E1252 #521E12 #265212 #124652
split-complementary
#3E1252 #465212 #12521E
monochromatic
#130619 #180720 #3E1252 #641D84 #8A28B6

Accessibility & contrast

On white

14.86
#3E1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1252
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1252#FFFFFF#000000##FFFFFF
##3E12521.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1252;
/* rgb */ color: rgb(62, 18, 82);
/* oklch */ color: oklch(28.9% 0.114 313.0);
Tailwind
colors: {
  custom: {
    50: '#765583',
    500: '#3e1252',
    950: '#000000',
  },
}
SCSS
$custom: #3e1252;
$custom-light: #765583;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1252",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 281.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28885,
    "c": 0.11391,
    "h": 313
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#3E1252
secondary
#508B35
accent
#E74175
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E1252

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

Preview Lab → · Contrast checker → · Palette generator →

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