#5D2BA6#5D2BA6

#5D2BA6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.184 H 296.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5D2BA6
RGBrgb(93, 43, 166)
HSLhsl(264, 59%, 41%)
HSVhsv(264, 74%, 65%)
CMYKcmyk(44%, 74.1%, 0%, 34.9%)
CIE-LABlab(31.37, 48.47, -57.57)
CIE-LCHlch(31.37, 75.25, 310.09°)
OKLaboklab(43% 0.0814 -0.1648)
OKLCHoklch(43% 0.184 296.3)
XYZxyz(12.2592, 6.8078, 36.7371)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BA6 #74A62B
analogous
#2B36A6 #5D2BA6 #9A2BA6
triadic
#5D2BA6 #A65D2B #2BA65D
tetradic
#5D2BA6 #A62B36 #74A62B #2BA69A
square
#5D2BA6 #A62B36 #74A62B #2BA69A
split-complementary
#5D2BA6 #A69A2B #36A62B
monochromatic
#271245 #421E75 #5D2BA6 #7A41CE #9C71DA

Accessibility & contrast

On white

8.89
#5D2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BA6
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BA6#FFFFFF#000000##FFFFFF
##5D2BA61.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#494B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ba6;
/* rgb */ color: rgb(93, 43, 166);
/* oklch */ color: oklch(43.0% 0.184 296.3);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5d2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ba6;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ba6",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 264.39,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.18377,
    "h": 296.3
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#5D2BA6
secondary
#9EC16B
accent
#E246A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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