#5D2B9E#5D2B9E

#5D2B9E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.175 H 298.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5D2B9E
RGBrgb(93, 43, 158)
HSLhsl(266, 57%, 39%)
HSVhsv(266, 73%, 62%)
CMYKcmyk(41.1%, 72.8%, 0%, 38%)
CIE-LABlab(30.70, 46.37, -53.82)
CIE-LCHlch(30.70, 71.04, 310.74°)
OKLaboklab(42.32% 0.0831 -0.1538)
OKLCHoklch(42.32% 0.175 298.4)
XYZxyz(11.5481, 6.5234, 32.9918)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B9E #6C9E2B
analogous
#2B339E #5D2B9E #972B9E
triadic
#5D2B9E #9E5D2B #2B9E5D
tetradic
#5D2B9E #9E2B33 #6C9E2B #2B9E97
square
#5D2B9E #9E2B33 #6C9E2B #2B9E97
split-complementary
#5D2B9E #9E972B #339E2B
monochromatic
#24113E #411E6E #5D2B9E #7A3CCA #9B6CD7

Accessibility & contrast

On white

9.11
#5D2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B9E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B9E#FFFFFF#000000##FFFFFF
##5D2B9E1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#4D4862
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2b9e;
/* rgb */ color: rgb(93, 43, 158);
/* oklch */ color: oklch(42.3% 0.175 298.4);
Tailwind
colors: {
  custom: {
    50: '#9169bc',
    500: '#5d2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b9e;
$custom-light: #9169bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b9e",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 266.087,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42321,
    "c": 0.17479,
    "h": 298.4
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#5D2B9E
secondary
#98BE67
accent
#E0479E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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