#3E174E#3E174E

#3E174E is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.102 H 314.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#3E174E
RGBrgb(62, 23, 78)
HSLhsl(283, 54%, 20%)
HSVhsv(283, 71%, 31%)
CMYKcmyk(20.5%, 70.5%, 0%, 69.4%)
CIE-LABlab(16.44, 29.14, -25.82)
CIE-LCHlch(16.44, 38.93, 318.46°)
OKLaboklab(29.23% 0.0716 -0.0725)
OKLCHoklch(29.23% 0.102 314.6)
XYZxyz(3.6679, 2.1871, 7.4352)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E174E #274E17
analogous
#22174E #3E174E #4E1743
triadic
#3E174E #4E3E17 #174E3E
tetradic
#3E174E #4E2217 #274E17 #17434E
square
#3E174E #4E2217 #274E17 #17434E
split-complementary
#3E174E #434E17 #174E22
monochromatic
#130718 #18091F #3E174E #64257D #8933AD

Accessibility & contrast

On white

14.61
#3E174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3E174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E174E
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E174E#FFFFFF#000000##FFFFFF
##3E174E1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#152A4D
Tritanopia (blue-blind)
#3D2130
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e174e;
/* rgb */ color: rgb(62, 23, 78);
/* oklch */ color: oklch(29.2% 0.102 314.6);
Tailwind
colors: {
  custom: {
    50: '#755780',
    500: '#3e174e',
    950: '#000000',
  },
}
SCSS
$custom: #3e174e;
$custom-light: #755780;
$custom-dark: #000000;
JSON
{
  "hex": "#3e174e",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 282.545,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29227,
    "c": 0.10192,
    "h": 314.6
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#3E174E
secondary
#51853C
accent
#DE4A75
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E174E

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

Preview Lab → · Contrast checker → · Palette generator →

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