#5D2E9D#5D2E9D

#5D2E9D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.170 H 298.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5D2E9D
RGBrgb(93, 46, 157)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 62%)
CMYKcmyk(40.8%, 70.7%, 0%, 38.4%)
CIE-LABlab(31.15, 44.61, -52.48)
CIE-LCHlch(31.15, 68.87, 310.37°)
OKLaboklab(42.62% 0.0803 -0.1498)
OKLCHoklch(42.62% 0.17 298.2)
XYZxyz(11.5754, 6.7153, 32.5781)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E9D #6E9D2E
analogous
#2E379D #5D2E9D #942E9D
triadic
#5D2E9D #9D5D2E #2E9D5D
tetradic
#5D2E9D #9D2E37 #6E9D2E #2E9D94
square
#5D2E9D #9D2E37 #6E9D2E #2E9D94
split-complementary
#5D2E9D #9D942E #379D2E
monochromatic
#25123E #41206E #5D2E9D #7A41C7 #9B70D5

Accessibility & contrast

On white

8.96
#5D2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E9D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E9D#FFFFFF#000000##FFFFFF
##5D2E9D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#4D4962
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2e9d;
/* rgb */ color: rgb(93, 46, 157);
/* oklch */ color: oklch(42.6% 0.170 298.2);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5d2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e9d;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e9d",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 265.405,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.16996,
    "h": 298.2
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#5D2E9D
secondary
#9ABD6A
accent
#DE4A9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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