#5D2EA6#5D2EA6

#5D2EA6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.180 H 295.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA6
RGBrgb(93, 46, 166)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(44%, 72.3%, 0%, 34.9%)
CIE-LABlab(31.88, 47.00, -56.72)
CIE-LCHlch(31.88, 73.67, 309.65°)
OKLaboklab(43.37% 0.0786 -0.1623)
OKLCHoklch(43.37% 0.18 295.8)
XYZxyz(12.3723, 7.0340, 36.7748)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA6 #77A62E
analogous
#2E3BA6 #5D2EA6 #992EA6
triadic
#5D2EA6 #A65D2E #2EA65D
tetradic
#5D2EA6 #A62E3B #77A62E #2EA699
square
#5D2EA6 #A62E3B #77A62E #2EA699
split-complementary
#5D2EA6 #A6992E #3BA62E
monochromatic
#271346 #422176 #5D2EA6 #7A46CC #9C76D9

Accessibility & contrast

On white

8.73
#5D2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA6
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA6#FFFFFF#000000##FFFFFF
##5D2EA61.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#494C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2ea6;
/* rgb */ color: rgb(93, 46, 166);
/* oklch */ color: oklch(43.4% 0.180 295.8);
Tailwind
colors: {
  custom: {
    50: '#926bc1',
    500: '#5d2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea6;
$custom-light: #926bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea6",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 263.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43369,
    "c": 0.18031,
    "h": 295.8
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#5D2EA6
secondary
#A1C16F
accent
#E048A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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