#5D2C8E#5D2C8E

#5D2C8E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.155 H 303.1°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5D2C8E
RGBrgb(93, 44, 142)
HSLhsl(270, 53%, 36%)
HSVhsv(270, 69%, 56%)
CMYKcmyk(34.5%, 69%, 0%, 44.3%)
CIE-LABlab(29.62, 41.72, -45.77)
CIE-LCHlch(29.62, 61.94, 312.35°)
OKLaboklab(41.16% 0.0847 -0.1301)
OKLCHoklch(41.16% 0.155 303.1)
XYZxyz(10.2962, 6.0815, 26.2174)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C8E #5D8E2C
analogous
#2C2C8E #5D2C8E #8E2C8E
triadic
#5D2C8E #8E5D2C #2C8E5D
tetradic
#5D2C8E #8E2C2C #5D8E2C #2C8E8E
square
#5D2C8E #8E2C2C #5D8E2C #2C8E8E
split-complementary
#5D2C8E #8E8E2C #2C8E2C
monochromatic
#200F31 #3E1E5F #5D2C8E #7C3ABD #9A65CF

Accessibility & contrast

On white

9.47
#5D2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C8E
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C8E#FFFFFF#000000##FFFFFF
##5D2C8E1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#01468C
Tritanopia (blue-blind)
#534259
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2c8e;
/* rgb */ color: rgb(93, 44, 142);
/* oklch */ color: oklch(41.2% 0.155 303.1);
Tailwind
colors: {
  custom: {
    50: '#8f69b0',
    500: '#5d2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c8e;
$custom-light: #8f69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c8e",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 270,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41157,
    "c": 0.15527,
    "h": 303.1
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#5D2C8E
secondary
#8BB660
accent
#DC4C94
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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