#5E2DB6#5E2DB6

#5E2DB6 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.200 H 292.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5E2DB6
RGBrgb(94, 45, 182)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 71%)
CMYKcmyk(48.4%, 75.3%, 0%, 28.6%)
CIE-LABlab(33.21, 51.93, -64.12)
CIE-LCHlch(33.21, 82.51, 309.01°)
OKLaboklab(44.75% 0.0772 -0.184)
OKLCHoklch(44.75% 0.2 292.8)
XYZxyz(13.9956, 7.6334, 44.9829)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DB6 #85B62D
analogous
#2D41B6 #5E2DB6 #A32DB6
triadic
#5E2DB6 #B65E2D #2DB65E
tetradic
#5E2DB6 #B62D41 #85B62D #2DB6A3
square
#5E2DB6 #B62D41 #85B62D #2DB6A3
split-complementary
#5E2DB6 #B6A32D #41B62D
monochromatic
#2B1554 #452185 #5E2DB6 #7D4DD3 #A17EDF

Accessibility & contrast

On white

8.31
#5E2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5E2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DB6
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DB6#FFFFFF#000000##FFFFFF
##5E2DB61.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#425270
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e2db6;
/* rgb */ color: rgb(94, 45, 182);
/* oklch */ color: oklch(44.8% 0.200 292.8);
Tailwind
colors: {
  custom: {
    50: '#946bcd',
    500: '#5e2db6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2db6;
$custom-light: #946bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2db6",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 261.46,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44754,
    "c": 0.1995,
    "h": 292.8
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#5E2DB6
secondary
#ABC877
accent
#E344AB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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