#5E2DA0#5E2DA0

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

Color values

HEX#5E2DA0
RGBrgb(94, 45, 160)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 63%)
CMYKcmyk(41.3%, 71.9%, 0%, 37.3%)
CIE-LABlab(31.33, 46.09, -53.99)
CIE-LCHlch(31.33, 70.99, 310.49°)
OKLaboklab(42.85% 0.0822 -0.1542)
OKLCHoklch(42.85% 0.175 298.1)
XYZxyz(11.8980, 6.7943, 33.9355)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DA0 #6FA02D
analogous
#2D35A0 #5E2DA0 #972DA0
triadic
#5E2DA0 #A05E2D #2DA05E
tetradic
#5E2DA0 #A02D35 #6FA02D #2DA097
square
#5E2DA0 #A02D35 #6FA02D #2DA097
split-complementary
#5E2DA0 #A0972D #35A02D
monochromatic
#261240 #422070 #5E2DA0 #7B41C9 #9C70D7

Accessibility & contrast

On white

8.90
#5E2DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E2DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DA0
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DA0#FFFFFF#000000##FFFFFF
##5E2DA01.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#4E4963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2da0;
/* rgb */ color: rgb(94, 45, 160);
/* oklch */ color: oklch(42.9% 0.175 298.1);
Tailwind
colors: {
  custom: {
    50: '#926abd',
    500: '#5e2da0',
    950: '#000000',
  },
}
SCSS
$custom: #5e2da0;
$custom-light: #926abd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2da0",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 265.565,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42852,
    "c": 0.17477,
    "h": 298.1
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#5E2DA0
secondary
#9BBE6B
accent
#DF489F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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