#3E177F#3E177F

#3E177F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.159 H 292.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#3E177F
RGBrgb(62, 23, 127)
HSLhsl(263, 69%, 29%)
HSVhsv(263, 82%, 50%)
CMYKcmyk(51.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(20.71, 42.21, -51.08)
CIE-LCHlch(20.71, 66.27, 309.57°)
OKLaboklab(33.57% 0.0611 -0.1467)
OKLCHoklch(33.57% 0.159 292.6)
XYZxyz(6.1227, 3.1690, 20.3636)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E177F #587F17
analogous
#17247F #3E177F #72177F
triadic
#3E177F #7F3E17 #177F3E
tetradic
#3E177F #7F1724 #587F17 #177F72
square
#3E177F #7F1724 #587F17 #177F72
split-complementary
#3E177F #7F7217 #247F17
monochromatic
#0D051A #250E4B #3E177F #5720B3 #7436DB

Accessibility & contrast

On white

12.85
#3E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E177F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E177F#FFFFFF#000000##FFFFFF
##3E177F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e177f;
/* rgb */ color: rgb(62, 23, 127);
/* oklch */ color: oklch(33.6% 0.159 292.6);
Tailwind
colors: {
  custom: {
    50: '#7b5aa5',
    500: '#3e177f',
    950: '#000000',
  },
}
SCSS
$custom: #3e177f;
$custom-light: #7b5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e177f",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 262.5,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33572,
    "c": 0.15889,
    "h": 292.6
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#3E177F
secondary
#88B43E
accent
#EC3CAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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