#5D2CAB#5D2CAB

#5D2CAB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.188 H 294.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5D2CAB
RGBrgb(93, 44, 171)
HSLhsl(263, 59%, 42%)
HSVhsv(263, 74%, 67%)
CMYKcmyk(45.6%, 74.3%, 0%, 32.9%)
CIE-LABlab(31.96, 49.31, -59.60)
CIE-LCHlch(31.96, 77.35, 309.60°)
OKLaboklab(43.56% 0.0793 -0.1707)
OKLCHoklch(43.56% 0.188 294.9)
XYZxyz(12.7636, 7.0685, 39.2120)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CAB #7AAB2C
analogous
#2C3AAB #5D2CAB #9D2CAB
triadic
#5D2CAB #AB5D2C #2CAB5D
tetradic
#5D2CAB #AB2C3A #7AAB2C #2CAB9D
square
#5D2CAB #AB2C3A #7AAB2C #2CAB9D
split-complementary
#5D2CAB #AB9D2C #3AAB2C
monochromatic
#28134A #431F7A #5D2CAB #7A45CF #9D76DC

Accessibility & contrast

On white

8.70
#5D2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2CAB
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CAB#FFFFFF#000000##FFFFFF
##5D2CAB1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#474D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2cab;
/* rgb */ color: rgb(93, 44, 171);
/* oklch */ color: oklch(43.6% 0.188 294.9);
Tailwind
colors: {
  custom: {
    50: '#926ac5',
    500: '#5d2cab',
    950: '#000000',
  },
}
SCSS
$custom: #5d2cab;
$custom-light: #926ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2cab",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 263.15,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43555,
    "c": 0.18826,
    "h": 294.9
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#5D2CAB
secondary
#A3C36F
accent
#E246A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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