#5D2E9B#5D2E9B

#5D2E9B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.168 H 298.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5D2E9B
RGBrgb(93, 46, 155)
HSLhsl(266, 54%, 39%)
HSVhsv(266, 70%, 61%)
CMYKcmyk(40%, 70.3%, 0%, 39.2%)
CIE-LABlab(30.99, 44.08, -51.52)
CIE-LCHlch(30.99, 67.80, 310.55°)
OKLaboklab(42.45% 0.0806 -0.147)
OKLCHoklch(42.45% 0.168 298.7)
XYZxyz(11.4061, 6.6476, 31.6862)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E9B #6C9B2E
analogous
#2E359B #5D2E9B #942E9B
triadic
#5D2E9B #9B5D2E #2E9B5D
tetradic
#5D2E9B #9B2E35 #6C9B2E #2E9B94
square
#5D2E9B #9B2E35 #6C9B2E #2E9B94
split-complementary
#5D2E9B #9B942E #359B2E
monochromatic
#24123D #41206C #5D2E9B #7A40C6 #9B6FD4

Accessibility & contrast

On white

9.01
#5D2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5D2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E9B
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E9B#FFFFFF#000000##FFFFFF
##5D2E9B1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#4E4861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2e9b;
/* rgb */ color: rgb(93, 46, 155);
/* oklch */ color: oklch(42.5% 0.168 298.7);
Tailwind
colors: {
  custom: {
    50: '#906ab9',
    500: '#5d2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e9b;
$custom-light: #906ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e9b",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 265.872,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.16766,
    "h": 298.7
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#5D2E9B
secondary
#98BC69
accent
#DE4A9E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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