#5D2EA1#5D2EA1

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

Color values

HEX#5D2EA1
RGBrgb(93, 46, 161)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(42.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.47, 45.67, -54.38)
CIE-LCHlch(31.47, 71.01, 310.03°)
OKLaboklab(42.95% 0.0795 -0.1554)
OKLCHoklch(42.95% 0.175 297.1)
XYZxyz(11.9225, 6.8541, 34.4061)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA1 #72A12E
analogous
#2E38A1 #5D2EA1 #972EA1
triadic
#5D2EA1 #A15D2E #2EA15D
tetradic
#5D2EA1 #A12E38 #72A12E #2EA197
square
#5D2EA1 #A12E38 #72A12E #2EA197
split-complementary
#5D2EA1 #A1972E #38A12E
monochromatic
#261342 #422071 #5D2EA1 #7A43C9 #9C73D7

Accessibility & contrast

On white

8.86
#5D2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA1
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA1#FFFFFF#000000##FFFFFF
##5D2EA11.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4C4B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ea1;
/* rgb */ color: rgb(93, 46, 161);
/* oklch */ color: oklch(42.9% 0.175 297.1);
Tailwind
colors: {
  custom: {
    50: '#916bbe',
    500: '#5d2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea1;
$custom-light: #916bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea1",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 264.522,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.17458,
    "h": 297.1
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#5D2EA1
secondary
#9DBE6C
accent
#DF49A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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