#5E32A2#5E32A2

#5E32A2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.171 H 296.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5E32A2
RGBrgb(94, 50, 162)
HSLhsl(264, 53%, 42%)
HSVhsv(264, 69%, 64%)
CMYKcmyk(42%, 69.1%, 0%, 36.5%)
CIE-LABlab(32.41, 44.07, -53.45)
CIE-LCHlch(32.41, 69.27, 309.51°)
OKLaboklab(43.67% 0.0767 -0.1526)
OKLCHoklch(43.67% 0.171 296.7)
XYZxyz(12.2766, 7.2693, 34.9317)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32A2 #76A232
analogous
#323EA2 #5E32A2 #9632A2
triadic
#5E32A2 #A25E32 #32A25E
tetradic
#5E32A2 #A2323E #76A232 #32A296
square
#5E32A2 #A2323E #76A232 #32A296
split-complementary
#5E32A2 #A29632 #3EA232
monochromatic
#281544 #432473 #5E32A2 #7B4AC7 #9D79D6

Accessibility & contrast

On white

8.56
#5E32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5E32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32A2
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32A2#FFFFFF#000000##FFFFFF
##5E32A21.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#4D4D66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e32a2;
/* rgb */ color: rgb(94, 50, 162);
/* oklch */ color: oklch(43.7% 0.171 296.7);
Tailwind
colors: {
  custom: {
    50: '#916dbe',
    500: '#5e32a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e32a2;
$custom-light: #916dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32a2",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 263.571,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43671,
    "c": 0.17083,
    "h": 296.7
  },
  "luminance": 0.0727
}

Semantic roles & 50–950 ramp

primary
#5E32A2
secondary
#A0BE72
accent
#DC4CA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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