#3E1980#3E1980

#3E1980 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.158 H 292.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3E1980
RGBrgb(62, 25, 128)
HSLhsl(262, 67%, 30%)
HSVhsv(262, 80%, 50%)
CMYKcmyk(51.6%, 80.5%, 0%, 49.8%)
CIE-LABlab(21.12, 41.58, -51.04)
CIE-LCHlch(21.12, 65.83, 309.17°)
OKLaboklab(33.89% 0.0592 -0.1466)
OKLCHoklch(33.89% 0.158 292)
XYZxyz(6.2294, 3.2777, 20.7223)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1980 #5B8019
analogous
#192880 #3E1980 #711980
triadic
#3E1980 #803E19 #19803E
tetradic
#3E1980 #801928 #5B8019 #198071
square
#3E1980 #801928 #5B8019 #198071
split-complementary
#3E1980 #807119 #288019
monochromatic
#0C051A #250F4D #3E1980 #5723B3 #733BD9

Accessibility & contrast

On white

12.68
#3E1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1980
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1980#FFFFFF#000000##FFFFFF
##3E19801.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#28364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1980;
/* rgb */ color: rgb(62, 25, 128);
/* oklch */ color: oklch(33.9% 0.158 292.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ba6',
    500: '#3e1980',
    950: '#000000',
  },
}
SCSS
$custom: #3e1980;
$custom-light: #7b5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1980",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 261.553,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.33891,
    "c": 0.15807,
    "h": 292
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#3E1980
secondary
#8BB441
accent
#EA3EAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1980

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

Preview Lab → · Contrast checker → · Palette generator →

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