#3E2789#3E2789

#3E2789 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.153 H 287.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3E2789
RGBrgb(62, 39, 137)
HSLhsl(254, 56%, 35%)
HSVhsv(254, 72%, 54%)
CMYKcmyk(54.7%, 71.5%, 0%, 46.3%)
CIE-LABlab(24.58, 36.91, -51.03)
CIE-LCHlch(24.58, 62.98, 305.88°)
OKLaboklab(36.59% 0.0447 -0.1466)
OKLCHoklch(36.59% 0.153 287)
XYZxyz(7.2261, 4.2809, 24.1076)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2789 #728927
analogous
#274189 #3E2789 #6F2789
triadic
#3E2789 #893E27 #27893E
tetradic
#3E2789 #892741 #728927 #27896F
square
#3E2789 #892741 #728927 #27896F
split-complementary
#3E2789 #896F27 #418927
monochromatic
#130C2A #281959 #3E2789 #5435B9 #765AD0

Accessibility & contrast

On white

11.31
#3E2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2789
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2789#FFFFFF#000000##FFFFFF
##3E27891.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#204055
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2789;
/* rgb */ color: rgb(62, 39, 137);
/* oklch */ color: oklch(36.6% 0.153 287.0);
Tailwind
colors: {
  custom: {
    50: '#7b63ac',
    500: '#3e2789',
    950: '#000000',
  },
}
SCSS
$custom: #3e2789;
$custom-light: #7b63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2789",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 254.082,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36592,
    "c": 0.1533,
    "h": 287
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#3E2789
secondary
#9FB557
accent
#DF49BC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2789

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

Preview Lab → · Contrast checker → · Palette generator →

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