#3E2176#3E2176

#3E2176 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.137 H 293.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3E2176
RGBrgb(62, 33, 118)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 72%, 46%)
CMYKcmyk(47.5%, 72%, 0%, 53.7%)
CIE-LABlab(21.65, 34.55, -43.80)
CIE-LCHlch(21.65, 55.79, 308.27°)
OKLaboklab(33.98% 0.0543 -0.1254)
OKLCHoklch(33.98% 0.137 293.4)
XYZxyz(5.7996, 3.4197, 17.4905)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2176 #597621
analogous
#212E76 #3E2176 #692176
triadic
#3E2176 #763E21 #21763E
tetradic
#3E2176 #76212E #597621 #217669
square
#3E2176 #76212E #597621 #217669
split-complementary
#3E2176 #766921 #2E7621
monochromatic
#0D0718 #251446 #3E2176 #572EA6 #7446CB

Accessibility & contrast

On white

12.47
#3E2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2176
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2176#FFFFFF#000000##FFFFFF
##3E21761.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#2E3649
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e2176;
/* rgb */ color: rgb(62, 33, 118);
/* oklch */ color: oklch(34.0% 0.137 293.4);
Tailwind
colors: {
  custom: {
    50: '#795f9e',
    500: '#3e2176',
    950: '#000000',
  },
}
SCSS
$custom: #3e2176;
$custom-light: #795f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2176",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 260.471,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.13666,
    "h": 293.4
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#3E2176
secondary
#89A94A
accent
#E048AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2176

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

Preview Lab → · Contrast checker → · Palette generator →

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