#5D2E9E#5D2E9E

#5D2E9E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.171 H 297.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5D2E9E
RGBrgb(93, 46, 158)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 62%)
CMYKcmyk(41.1%, 70.9%, 0%, 38%)
CIE-LABlab(31.23, 44.87, -52.95)
CIE-LCHlch(31.23, 69.41, 310.28°)
OKLaboklab(42.7% 0.0801 -0.1512)
OKLCHoklch(42.7% 0.171 297.9)
XYZxyz(11.6612, 6.7496, 33.0295)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E9E #6F9E2E
analogous
#2E379E #5D2E9E #952E9E
triadic
#5D2E9E #9E5D2E #2E9E5D
tetradic
#5D2E9E #9E2E37 #6F9E2E #2E9E95
square
#5D2E9E #9E2E37 #6F9E2E #2E9E95
split-complementary
#5D2E9E #9E952E #379E2E
monochromatic
#25123F #41206F #5D2E9E #7A41C8 #9B71D6

Accessibility & contrast

On white

8.94
#5D2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E9E
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E9E#FFFFFF#000000##FFFFFF
##5D2E9E1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#4D4962
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2e9e;
/* rgb */ color: rgb(93, 46, 158);
/* oklch */ color: oklch(42.7% 0.171 297.9);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5d2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e9e;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e9e",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 265.179,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.427,
    "c": 0.17111,
    "h": 297.9
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#5D2E9E
secondary
#9BBD6B
accent
#DE4AA0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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