#5D2B9B#5D2B9B

#5D2B9B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.171 H 299.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5D2B9B
RGBrgb(93, 43, 155)
HSLhsl(267, 57%, 39%)
HSVhsv(267, 72%, 61%)
CMYKcmyk(40%, 72.3%, 0%, 39.2%)
CIE-LABlab(30.45, 45.59, -52.39)
CIE-LCHlch(30.45, 69.45, 311.02°)
OKLaboklab(42.07% 0.0837 -0.1496)
OKLCHoklch(42.07% 0.171 299.2)
XYZxyz(11.2930, 6.4213, 31.6485)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B9B #699B2B
analogous
#2B319B #5D2B9B #952B9B
triadic
#5D2B9B #9B5D2B #2B9B5D
tetradic
#5D2B9B #9B2B31 #699B2B #2B9B95
square
#5D2B9B #9B2B31 #699B2B #2B9B95
split-complementary
#5D2B9B #9B952B #319B2B
monochromatic
#24103B #401E6B #5D2B9B #7A3BC9 #9A6BD6

Accessibility & contrast

On white

9.19
#5D2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B9B
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B9B#FFFFFF#000000##FFFFFF
##5D2B9B1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#4E4760
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2b9b;
/* rgb */ color: rgb(93, 43, 155);
/* oklch */ color: oklch(42.1% 0.171 299.2);
Tailwind
colors: {
  custom: {
    50: '#9069b9',
    500: '#5d2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b9b;
$custom-light: #9069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b9b",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 266.786,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42071,
    "c": 0.1714,
    "h": 299.2
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#5D2B9B
secondary
#96BC65
accent
#E0489C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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