#5D2EA3#5D2EA3

#5D2EA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.177 H 296.6°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA3
RGBrgb(93, 46, 163)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(42.9%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.64, 46.20, -55.32)
CIE-LCHlch(31.64, 72.07, 309.87°)
OKLaboklab(43.12% 0.0792 -0.1582)
OKLCHoklch(43.12% 0.177 296.6)
XYZxyz(12.1003, 6.9252, 35.3424)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA3 #74A32E
analogous
#2E39A3 #5D2EA3 #972EA3
triadic
#5D2EA3 #A35D2E #2EA35D
tetradic
#5D2EA3 #A32E39 #74A32E #2EA397
square
#5D2EA3 #A32E39 #74A32E #2EA397
split-complementary
#5D2EA3 #A3972E #39A32E
monochromatic
#271344 #422173 #5D2EA3 #7A44CA #9C74D8

Accessibility & contrast

On white

8.81
#5D2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA3
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA3#FFFFFF#000000##FFFFFF
##5D2EA31.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#4B4B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ea3;
/* rgb */ color: rgb(93, 46, 163);
/* oklch */ color: oklch(43.1% 0.177 296.6);
Tailwind
colors: {
  custom: {
    50: '#916bbf',
    500: '#5d2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea3;
$custom-light: #916bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea3",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 264.103,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43116,
    "c": 0.17688,
    "h": 296.6
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#5D2EA3
secondary
#9EBF6D
accent
#DF49A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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