#3E2186#3E2186

#3E2186 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.157 H 288.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#3E2186
RGBrgb(62, 33, 134)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 53%)
CMYKcmyk(53.7%, 75.4%, 0%, 47.5%)
CIE-LABlab(23.11, 39.31, -51.56)
CIE-LCHlch(23.11, 64.84, 307.33°)
OKLaboklab(35.46% 0.0508 -0.1482)
OKLCHoklch(35.46% 0.157 288.9)
XYZxyz(6.8323, 3.8328, 22.9294)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2186 #698621
analogous
#213686 #3E2186 #712186
triadic
#3E2186 #863E21 #21863E
tetradic
#3E2186 #862136 #698621 #218671
square
#3E2186 #862136 #698621 #218671
split-complementary
#3E2186 #867121 #368621
monochromatic
#110924 #271555 #3E2186 #552DB7 #744ED3

Accessibility & contrast

On white

11.89
#3E2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2186
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2186#FFFFFF#000000##FFFFFF
##3E21861.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#233C51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2186;
/* rgb */ color: rgb(62, 33, 134);
/* oklch */ color: oklch(35.5% 0.157 288.9);
Tailwind
colors: {
  custom: {
    50: '#7b5faa',
    500: '#3e2186',
    950: '#000000',
  },
}
SCSS
$custom: #3e2186;
$custom-light: #7b5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2186",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 257.228,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35463,
    "c": 0.15663,
    "h": 288.9
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#3E2186
secondary
#98B74C
accent
#E444B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2186

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

Preview Lab → · Contrast checker → · Palette generator →

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