#5E2DB4#5E2DB4

#5E2DB4 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.197 H 293.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5E2DB4
RGBrgb(94, 45, 180)
HSLhsl(262, 60%, 44%)
HSVhsv(262, 75%, 71%)
CMYKcmyk(47.8%, 75%, 0%, 29.4%)
CIE-LABlab(33.03, 51.40, -63.22)
CIE-LCHlch(33.03, 81.47, 309.11°)
OKLaboklab(44.58% 0.0777 -0.1813)
OKLCHoklch(44.58% 0.197 293.2)
XYZxyz(13.7904, 7.5513, 43.9021)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DB4 #83B42D
analogous
#2D40B4 #5E2DB4 #A22DB4
triadic
#5E2DB4 #B45E2D #2DB45E
tetradic
#5E2DB4 #B42D40 #83B42D #2DB4A2
square
#5E2DB4 #B42D40 #83B42D #2DB4A2
split-complementary
#5E2DB4 #B4A22D #40B42D
monochromatic
#2B1552 #442183 #5E2DB4 #7D4CD2 #A07DDE

Accessibility & contrast

On white

8.37
#5E2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5E2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DB4
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DB4#FFFFFF#000000##FFFFFF
##5E2DB41.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#43516E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e2db4;
/* rgb */ color: rgb(94, 45, 180);
/* oklch */ color: oklch(44.6% 0.197 293.2);
Tailwind
colors: {
  custom: {
    50: '#946bcc',
    500: '#5e2db4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2db4;
$custom-light: #946bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2db4",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 261.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44576,
    "c": 0.19728,
    "h": 293.2
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#5E2DB4
secondary
#AAC776
accent
#E345AA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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