#5D2C9E#5D2C9E

#5D2C9E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.174 H 298.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5D2C9E
RGBrgb(93, 44, 158)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 62%)
CMYKcmyk(41.1%, 72.2%, 0%, 38%)
CIE-LABlab(30.87, 45.88, -53.54)
CIE-LCHlch(30.87, 70.50, 310.59°)
OKLaboklab(42.45% 0.0821 -0.1529)
OKLCHoklch(42.45% 0.174 298.2)
XYZxyz(11.5849, 6.5970, 33.0041)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C9E #6D9E2C
analogous
#2C349E #5D2C9E #962C9E
triadic
#5D2C9E #9E5D2C #2C9E5D
tetradic
#5D2C9E #9E2C34 #6D9E2C #2C9E96
square
#5D2C9E #9E2C34 #6D9E2C #2C9E96
split-complementary
#5D2C9E #9E962C #349E2C
monochromatic
#25113E #411F6E #5D2C9E #7A3EC9 #9B6ED7

Accessibility & contrast

On white

9.05
#5D2C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D2C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C9E
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C9E#FFFFFF#000000##FFFFFF
##5D2C9E1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2c9e;
/* rgb */ color: rgb(93, 44, 158);
/* oklch */ color: oklch(42.4% 0.174 298.2);
Tailwind
colors: {
  custom: {
    50: '#9169bc',
    500: '#5d2c9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c9e;
$custom-light: #9169bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c9e",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 265.789,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42445,
    "c": 0.17358,
    "h": 298.2
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#5D2C9E
secondary
#99BE68
accent
#E0489F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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