#3E1783#3E1783

#3E1783 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.163 H 291.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3E1783
RGBrgb(62, 23, 131)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 51%)
CMYKcmyk(52.7%, 82.4%, 0%, 48.6%)
CIE-LABlab(21.11, 43.32, -52.95)
CIE-LCHlch(21.11, 68.41, 309.29°)
OKLaboklab(33.98% 0.0597 -0.1521)
OKLCHoklch(33.98% 0.163 291.4)
XYZxyz(6.3886, 3.2754, 21.7639)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1783 #5C8317
analogous
#172683 #3E1783 #741783
triadic
#3E1783 #833E17 #17833E
tetradic
#3E1783 #831726 #5C8317 #178374
square
#3E1783 #831726 #5C8317 #178374
split-complementary
#3E1783 #837417 #268317
monochromatic
#0D051B #250E4F #3E1783 #5720B7 #7338DC

Accessibility & contrast

On white

12.69
#3E1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1783
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1783#FFFFFF#000000##FFFFFF
##3E17831.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#26374D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1783;
/* rgb */ color: rgb(62, 23, 131);
/* oklch */ color: oklch(34.0% 0.163 291.4);
Tailwind
colors: {
  custom: {
    50: '#7c5aa8',
    500: '#3e1783',
    950: '#000000',
  },
}
SCSS
$custom: #3e1783;
$custom-light: #7c5aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1783",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 261.667,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33976,
    "c": 0.16344,
    "h": 291.4
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#3E1783
secondary
#8CB73F
accent
#ED3BAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3E1783

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

Preview Lab → · Contrast checker → · Palette generator →

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