#5D2C9B#5D2C9B

#5D2C9B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.170 H 299.1°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5D2C9B
RGBrgb(93, 44, 155)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 72%, 61%)
CMYKcmyk(40%, 71.6%, 0%, 39.2%)
CIE-LABlab(30.63, 45.09, -52.11)
CIE-LCHlch(30.63, 68.91, 310.87°)
OKLaboklab(42.2% 0.0827 -0.1487)
OKLCHoklch(42.2% 0.17 299.1)
XYZxyz(11.3298, 6.4949, 31.6607)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C9B #6A9B2C
analogous
#2C339B #5D2C9B #952C9B
triadic
#5D2C9B #9B5D2C #2C9B5D
tetradic
#5D2C9B #9B2C33 #6A9B2C #2C9B95
square
#5D2C9B #9B2C33 #6A9B2C #2C9B95
split-complementary
#5D2C9B #9B952C #339B2C
monochromatic
#24113C #401E6B #5D2C9B #7A3CC8 #9B6CD5

Accessibility & contrast

On white

9.13
#5D2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2C9B
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C9B#FFFFFF#000000##FFFFFF
##5D2C9B1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#4E4760
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2c9b;
/* rgb */ color: rgb(93, 44, 155);
/* oklch */ color: oklch(42.2% 0.170 299.1);
Tailwind
colors: {
  custom: {
    50: '#9069b9',
    500: '#5d2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c9b;
$custom-light: #9069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c9b",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 266.486,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42196,
    "c": 0.17017,
    "h": 299.1
  },
  "luminance": 0.06495
}

Semantic roles & 50–950 ramp

primary
#5D2C9B
secondary
#96BC67
accent
#DF499D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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