#5D2BB1#5D2BB1

#5D2BB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.196 H 293.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5D2BB1
RGBrgb(93, 43, 177)
HSLhsl(262, 61%, 43%)
HSVhsv(262, 76%, 69%)
CMYKcmyk(47.5%, 75.7%, 0%, 30.6%)
CIE-LABlab(32.32, 51.37, -62.60)
CIE-LCHlch(32.32, 80.98, 309.38°)
OKLaboklab(43.97% 0.0787 -0.1795)
OKLCHoklch(43.97% 0.196 293.7)
XYZxyz(13.3117, 7.2288, 42.2804)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2BB1 #7FB12B
analogous
#2B3CB1 #5D2BB1 #A02BB1
triadic
#5D2BB1 #B15D2B #2BB15D
tetradic
#5D2BB1 #B12B3C #7FB12B #2BB1A0
square
#5D2BB1 #B12B3C #7FB12B #2BB1A0
split-complementary
#5D2BB1 #B1A02B #3CB12B
monochromatic
#29134F #431F80 #5D2BB1 #7B47D2 #9E78DE

Accessibility & contrast

On white

8.59
#5D2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2BB1
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2BB1#FFFFFF#000000##FFFFFF
##5D2BB11.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#444F6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d2bb1;
/* rgb */ color: rgb(93, 43, 177);
/* oklch */ color: oklch(44.0% 0.196 293.7);
Tailwind
colors: {
  custom: {
    50: '#936ac9',
    500: '#5d2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2bb1;
$custom-light: #936ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2bb1",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 262.388,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.19601,
    "h": 293.7
  },
  "luminance": 0.07229
}

Semantic roles & 50–950 ramp

primary
#5D2BB1
secondary
#A7C672
accent
#E444A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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