#5E2DB2#5E2DB2

#5E2DB2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.195 H 293.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5E2DB2
RGBrgb(94, 45, 178)
HSLhsl(262, 60%, 44%)
HSVhsv(262, 75%, 70%)
CMYKcmyk(47.2%, 74.7%, 0%, 30.2%)
CIE-LABlab(32.85, 50.86, -62.32)
CIE-LCHlch(32.85, 80.44, 309.22°)
OKLaboklab(44.4% 0.0782 -0.1787)
OKLCHoklch(44.4% 0.195 293.6)
XYZxyz(13.5881, 7.4704, 42.8368)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DB2 #81B22D
analogous
#2D3FB2 #5E2DB2 #A02DB2
triadic
#5E2DB2 #B25E2D #2DB25E
tetradic
#5E2DB2 #B22D3F #81B22D #2DB2A0
square
#5E2DB2 #B22D3F #81B22D #2DB2A0
split-complementary
#5E2DB2 #B2A02D #3FB22D
monochromatic
#2A1450 #442181 #5E2DB2 #7C4BD1 #A07CDE

Accessibility & contrast

On white

8.42
#5E2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5E2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DB2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DB2#FFFFFF#000000##FFFFFF
##5E2DB21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#45516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e2db2;
/* rgb */ color: rgb(94, 45, 178);
/* oklch */ color: oklch(44.4% 0.195 293.6);
Tailwind
colors: {
  custom: {
    50: '#946bca',
    500: '#5e2db2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2db2;
$custom-light: #946bca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2db2",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 262.105,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.19506,
    "h": 293.6
  },
  "luminance": 0.07471
}

Semantic roles & 50–950 ramp

primary
#5E2DB2
secondary
#A8C675
accent
#E345A9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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