#3E196B#3E196B

#3E196B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.133 H 299.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3E196B
RGBrgb(62, 25, 107)
HSLhsl(267, 62%, 26%)
HSVhsv(267, 77%, 42%)
CMYKcmyk(42.1%, 76.6%, 0%, 58%)
CIE-LABlab(19.14, 35.71, -40.79)
CIE-LCHlch(19.14, 54.21, 311.20°)
OKLaboklab(31.89% 0.065 -0.1165)
OKLCHoklch(31.89% 0.133 299.2)
XYZxyz(4.9874, 2.7809, 14.1811)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E196B #466B19
analogous
#191D6B #3E196B #67196B
triadic
#3E196B #6B3E19 #196B3E
tetradic
#3E196B #6B191D #466B19 #196B67
square
#3E196B #6B191D #466B19 #196B67
split-complementary
#3E196B #6B6719 #1D6B19
monochromatic
#0E0619 #210D39 #3E196B #5B259D #7730CE

Accessibility & contrast

On white

13.49
#3E196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E196B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E196B#FFFFFF#000000##FFFFFF
##3E196B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#332E40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e196b;
/* rgb */ color: rgb(62, 25, 107);
/* oklch */ color: oklch(31.9% 0.133 299.2);
Tailwind
colors: {
  custom: {
    50: '#785996',
    500: '#3e196b',
    950: '#000000',
  },
}
SCSS
$custom: #3e196b;
$custom-light: #785996;
$custom-dark: #000000;
JSON
{
  "hex": "#3e196b",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 267.073,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31893,
    "c": 0.13343,
    "h": 299.2
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#3E196B
secondary
#75A13F
accent
#E5439C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E196B

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

Preview Lab → · Contrast checker → · Palette generator →

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