#3E207E#3E207E

#3E207E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.148 H 291.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3E207E
RGBrgb(62, 32, 126)
HSLhsl(259, 59%, 31%)
HSVhsv(259, 75%, 49%)
CMYKcmyk(50.8%, 74.6%, 0%, 50.6%)
CIE-LABlab(22.17, 37.47, -48.05)
CIE-LCHlch(22.17, 60.93, 307.95°)
OKLaboklab(34.57% 0.0536 -0.1379)
OKLCHoklch(34.57% 0.148 291.3)
XYZxyz(6.2679, 3.5633, 20.0921)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E207E #607E20
analogous
#20317E #3E207E #6D207E
triadic
#3E207E #7E3E20 #207E3E
tetradic
#3E207E #7E2031 #607E20 #207E6D
square
#3E207E #7E2031 #607E20 #207E6D
split-complementary
#3E207E #7E6D20 #317E20
monochromatic
#0E071C #26144D #3E207E #562CAF #7348D0

Accessibility & contrast

On white

12.26
#3E207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E207E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E207E#FFFFFF#000000##FFFFFF
##3E207E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#29394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e207e;
/* rgb */ color: rgb(62, 32, 126);
/* oklch */ color: oklch(34.6% 0.148 291.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ea4',
    500: '#3e207e',
    950: '#000000',
  },
}
SCSS
$custom: #3e207e;
$custom-light: #7a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e207e",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 259.149,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34569,
    "c": 0.14793,
    "h": 291.3
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#3E207E
secondary
#90B149
accent
#E345B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E207E

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

Preview Lab → · Contrast checker → · Palette generator →

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