#3E177A#3E177A

#3E177A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.153 H 294.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#3E177A
RGBrgb(62, 23, 122)
HSLhsl(264, 68%, 28%)
HSVhsv(264, 81%, 48%)
CMYKcmyk(49.2%, 81.1%, 0%, 52.2%)
CIE-LABlab(20.21, 40.82, -48.72)
CIE-LCHlch(20.21, 63.56, 309.96°)
OKLaboklab(33.07% 0.0627 -0.1398)
OKLCHoklch(33.07% 0.153 294.2)
XYZxyz(5.8049, 3.0419, 18.6899)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E177A #537A17
analogous
#17227A #3E177A #6F177A
triadic
#3E177A #7A3E17 #177A3E
tetradic
#3E177A #7A1722 #537A17 #177A6F
square
#3E177A #7A1722 #537A17 #177A6F
split-complementary
#3E177A #7A6F17 #227A17
monochromatic
#0D051A #240D47 #3E177A #5821AD #7433D9

Accessibility & contrast

On white

13.06
#3E177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E177A
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E177A#FFFFFF#000000##FFFFFF
##3E177A1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2C3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e177a;
/* rgb */ color: rgb(62, 23, 122);
/* oklch */ color: oklch(33.1% 0.153 294.2);
Tailwind
colors: {
  custom: {
    50: '#7a59a1',
    500: '#3e177a',
    950: '#000000',
  },
}
SCSS
$custom: #3e177a;
$custom-light: #7a59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e177a",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 263.636,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33074,
    "c": 0.15318,
    "h": 294.2
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#3E177A
secondary
#82AF3E
accent
#EB3DA6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E177A

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

Preview Lab → · Contrast checker → · Palette generator →

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