#5D28AF#5D28AF

#5D28AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.197 H 294.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5D28AF
RGBrgb(93, 40, 175)
HSLhsl(264, 63%, 42%)
HSVhsv(264, 77%, 69%)
CMYKcmyk(46.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.67, 52.20, -62.47)
CIE-LCHlch(31.67, 81.41, 309.88°)
OKLaboklab(43.46% 0.0817 -0.1791)
OKLCHoklch(43.46% 0.197 294.5)
XYZxyz(13.0087, 6.9395, 41.2032)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28AF #7AAF28
analogous
#2836AF #5D28AF #A128AF
triadic
#5D28AF #AF5D28 #28AF5D
tetradic
#5D28AF #AF2836 #7AAF28 #28AFA1
square
#5D28AF #AF2836 #7AAF28 #28AFA1
split-complementary
#5D28AF #AFA128 #36AF28
monochromatic
#28114B #431D7D #5D28AF #7A41D4 #9D73DF

Accessibility & contrast

On white

8.79
#5D28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D28AF
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28AF#FFFFFF#000000##FFFFFF
##5D28AF1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#454D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d28af;
/* rgb */ color: rgb(93, 40, 175);
/* oklch */ color: oklch(43.5% 0.197 294.5);
Tailwind
colors: {
  custom: {
    50: '#9368c8',
    500: '#5d28af',
    950: '#000000',
  },
}
SCSS
$custom: #5d28af;
$custom-light: #9368c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28af",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 263.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43457,
    "c": 0.19687,
    "h": 294.5
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#5D28AF
secondary
#A3C66D
accent
#E642A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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