#3E177E#3E177E

#3E177E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.158 H 292.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3E177E
RGBrgb(62, 23, 126)
HSLhsl(263, 69%, 29%)
HSVhsv(263, 82%, 49%)
CMYKcmyk(50.8%, 81.7%, 0%, 50.6%)
CIE-LABlab(20.61, 41.93, -50.61)
CIE-LCHlch(20.61, 65.73, 309.64°)
OKLaboklab(33.47% 0.0614 -0.1453)
OKLCHoklch(33.47% 0.158 292.9)
XYZxyz(6.0578, 3.1431, 20.0221)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E177E #577E17
analogous
#17247E #3E177E #72177E
triadic
#3E177E #7E3E17 #177E3E
tetradic
#3E177E #7E1724 #577E17 #177E72
square
#3E177E #7E1724 #577E17 #177E72
split-complementary
#3E177E #7E7217 #247E17
monochromatic
#0D051A #250E4A #3E177E #5720B2 #7435DA

Accessibility & contrast

On white

12.89
#3E177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E177E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E177E#FFFFFF#000000##FFFFFF
##3E177E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e177e;
/* rgb */ color: rgb(62, 23, 126);
/* oklch */ color: oklch(33.5% 0.158 292.9);
Tailwind
colors: {
  custom: {
    50: '#7b5aa4',
    500: '#3e177e',
    950: '#000000',
  },
}
SCSS
$custom: #3e177e;
$custom-light: #7b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e177e",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 262.718,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.15776,
    "h": 292.9
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#3E177E
secondary
#87B33E
accent
#EC3CA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E177E

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

Preview Lab → · Contrast checker → · Palette generator →

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