#3E198F#3E198F

#3E198F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.175 H 288.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3E198F
RGBrgb(62, 25, 143)
HSLhsl(259, 70%, 33%)
HSVhsv(259, 83%, 56%)
CMYKcmyk(56.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(22.66, 45.80, -57.92)
CIE-LCHlch(22.66, 73.84, 308.34°)
OKLaboklab(35.42% 0.0542 -0.1667)
OKLCHoklch(35.42% 0.175 288)
XYZxyz(7.2907, 3.7022, 26.3117)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E198F #6A8F19
analogous
#192F8F #3E198F #79198F
triadic
#3E198F #8F3E19 #198F3E
tetradic
#3E198F #8F192F #6A8F19 #198F79
square
#3E198F #8F192F #6A8F19 #198F79
split-complementary
#3E198F #8F7919 #2F8F19
monochromatic
#110727 #27105B #3E198F #5522C3 #7444DE

Accessibility & contrast

On white

12.06
#3E198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E198F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E198F#FFFFFF#000000##FFFFFF
##3E198F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1A3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e198f;
/* rgb */ color: rgb(62, 25, 143);
/* oklch */ color: oklch(35.4% 0.175 288.0);
Tailwind
colors: {
  custom: {
    50: '#7e5cb1',
    500: '#3e198f',
    950: '#000000',
  },
}
SCSS
$custom: #3e198f;
$custom-light: #7e5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e198f",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 258.814,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.17527,
    "h": 288
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#3E198F
secondary
#99BF44
accent
#ED3BB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E198F

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

Preview Lab → · Contrast checker → · Palette generator →

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