#3E174C#3E174C

#3E174C is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.1% C 0.100 H 316.0°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#3E174C
RGBrgb(62, 23, 76)
HSLhsl(284, 54%, 19%)
HSVhsv(284, 70%, 30%)
CMYKcmyk(18.4%, 69.7%, 0%, 70.2%)
CIE-LABlab(16.30, 28.65, -24.67)
CIE-LCHlch(16.30, 37.81, 319.27°)
OKLaboklab(29.08% 0.0717 -0.0692)
OKLCHoklch(29.08% 0.1 316)
XYZxyz(3.5973, 2.1589, 7.0633)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E174C #254C17
analogous
#24174C #3E174C #4C1740
triadic
#3E174C #4C3E17 #174C3E
tetradic
#3E174C #4C2417 #254C17 #17404C
square
#3E174C #4C2417 #254C17 #17404C
split-complementary
#3E174C #404C17 #174C24
monochromatic
#130717 #18091D #3E174C #64257B #8B33AA

Accessibility & contrast

On white

14.67
#3E174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3E174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E174C
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E174C#FFFFFF#000000##FFFFFF
##3E174C1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05264E
Deuteranopia (green-blind)
#172A4B
Tritanopia (blue-blind)
#3D212F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3e174c;
/* rgb */ color: rgb(62, 23, 76);
/* oklch */ color: oklch(29.1% 0.100 316.0);
Tailwind
colors: {
  custom: {
    50: '#75577e',
    500: '#3e174c',
    950: '#000000',
  },
}
SCSS
$custom: #3e174c;
$custom-light: #75577e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e174c",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 284.151,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2908,
    "c": 0.0996,
    "h": 316
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#3E174C
secondary
#4F833C
accent
#DD4B71
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3E174C

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

Preview Lab → · Contrast checker → · Palette generator →

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