#5D2BA3#5D2BA3

#5D2BA3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.180 H 297.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5D2BA3
RGBrgb(93, 43, 163)
HSLhsl(265, 58%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(42.9%, 73.6%, 0%, 36.1%)
CIE-LABlab(31.11, 47.68, -56.17)
CIE-LCHlch(31.11, 73.68, 310.32°)
OKLaboklab(42.74% 0.0821 -0.1607)
OKLCHoklch(42.74% 0.18 297.1)
XYZxyz(11.9872, 6.6990, 35.3047)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BA3 #71A32B
analogous
#2B35A3 #5D2BA3 #992BA3
triadic
#5D2BA3 #A35D2B #2BA35D
tetradic
#5D2BA3 #A32B35 #71A32B #2BA399
square
#5D2BA3 #A32B35 #71A32B #2BA399
split-complementary
#5D2BA3 #A3992B #35A32B
monochromatic
#261142 #411E73 #5D2BA3 #7A3FCC #9B6FD9

Accessibility & contrast

On white

8.98
#5D2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2BA3
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BA3#FFFFFF#000000##FFFFFF
##5D2BA31.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4B4A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2ba3;
/* rgb */ color: rgb(93, 43, 163);
/* oklch */ color: oklch(42.7% 0.180 297.1);
Tailwind
colors: {
  custom: {
    50: '#9169bf',
    500: '#5d2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ba3;
$custom-light: #9169bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ba3",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 265,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42744,
    "c": 0.18041,
    "h": 297.1
  },
  "luminance": 0.06699
}

Semantic roles & 50–950 ramp

primary
#5D2BA3
secondary
#9CC06A
accent
#E146A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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