#3E207F#3E207F

#3E207F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.149 H 291.0°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3E207F
RGBrgb(62, 32, 127)
HSLhsl(259, 60%, 31%)
HSVhsv(259, 75%, 50%)
CMYKcmyk(51.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(22.26, 37.77, -48.53)
CIE-LCHlch(22.26, 61.50, 307.89°)
OKLaboklab(34.66% 0.0534 -0.1393)
OKLCHoklch(34.66% 0.149 291)
XYZxyz(6.3328, 3.5892, 20.4337)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E207F #617F20
analogous
#20327F #3E207F #6D207F
triadic
#3E207F #7F3E20 #207F3E
tetradic
#3E207F #7F2032 #617F20 #207F6D
square
#3E207F #7F2032 #617F20 #207F6D
split-complementary
#3E207F #7F6D20 #327F20
monochromatic
#0E071D #26144E #3E207F #562CB0 #7448D1

Accessibility & contrast

On white

12.22
#3E207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E207F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E207F#FFFFFF#000000##FFFFFF
##3E207F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#28394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e207f;
/* rgb */ color: rgb(62, 32, 127);
/* oklch */ color: oklch(34.7% 0.149 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ea5',
    500: '#3e207f',
    950: '#000000',
  },
}
SCSS
$custom: #3e207f;
$custom-light: #7a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e207f",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 258.947,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.14918,
    "h": 291
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#3E207F
secondary
#91B249
accent
#E345B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E207F

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

Preview Lab → · Contrast checker → · Palette generator →

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