#5E2DA1#5E2DA1

#5E2DA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.176 H 297.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5E2DA1
RGBrgb(94, 45, 161)
HSLhsl(265, 56%, 40%)
HSVhsv(265, 72%, 63%)
CMYKcmyk(41.6%, 72%, 0%, 36.9%)
CIE-LABlab(31.42, 46.36, -54.46)
CIE-LCHlch(31.42, 71.52, 310.40°)
OKLaboklab(42.94% 0.082 -0.1556)
OKLCHoklch(42.94% 0.176 297.8)
XYZxyz(11.9858, 6.8295, 34.3980)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DA1 #70A12D
analogous
#2D36A1 #5E2DA1 #982DA1
triadic
#5E2DA1 #A15E2D #2DA15E
tetradic
#5E2DA1 #A12D36 #70A12D #2DA198
square
#5E2DA1 #A12D36 #70A12D #2DA198
split-complementary
#5E2DA1 #A1982D #36A12D
monochromatic
#261241 #422071 #5E2DA1 #7B41CA #9C71D7

Accessibility & contrast

On white

8.88
#5E2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DA1
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DA1#FFFFFF#000000##FFFFFF
##5E2DA11.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4D4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2da1;
/* rgb */ color: rgb(94, 45, 161);
/* oklch */ color: oklch(42.9% 0.176 297.8);
Tailwind
colors: {
  custom: {
    50: '#926abe',
    500: '#5e2da1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2da1;
$custom-light: #926abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2da1",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 265.345,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42935,
    "c": 0.17591,
    "h": 297.8
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#5E2DA1
secondary
#9BBF6B
accent
#E048A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

#5E2DA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva