#5D2BB2#5D2BB2

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

Color values

HEX#5D2BB2
RGBrgb(93, 43, 178)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 70%)
CMYKcmyk(47.8%, 75.8%, 0%, 30.2%)
CIE-LABlab(32.41, 51.64, -63.05)
CIE-LCHlch(32.41, 81.50, 309.32°)
OKLaboklab(44.06% 0.0784 -0.1808)
OKLCHoklch(44.06% 0.197 293.4)
XYZxyz(13.4117, 7.2688, 42.8072)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BB2 #80B22B
analogous
#2B3DB2 #5D2BB2 #A02BB2
triadic
#5D2BB2 #B25D2B #2BB25D
tetradic
#5D2BB2 #B22B3D #80B22B #2BB2A0
square
#5D2BB2 #B22B3D #80B22B #2BB2A0
split-complementary
#5D2BB2 #B2A02B #3DB22B
monochromatic
#29134F #431F81 #5D2BB2 #7B48D3 #9F79DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D2BB2#FFFFFF#000000##FFFFFF
##5D2BB21.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)
#004EB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#43506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d2bb2;
/* rgb */ color: rgb(93, 43, 178);
/* oklch */ color: oklch(44.1% 0.197 293.4);
Tailwind
colors: {
  custom: {
    50: '#936aca',
    500: '#5d2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5d2bb2;
$custom-light: #936aca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2bb2",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 262.222,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4406,
    "c": 0.19711,
    "h": 293.4
  },
  "luminance": 0.07269
}

Semantic roles & 50–950 ramp

primary
#5D2BB2
secondary
#A7C772
accent
#E444A9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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