#5D28A2#5D28A2

#5D28A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.183 H 297.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5D28A2
RGBrgb(93, 40, 162)
HSLhsl(266, 60%, 40%)
HSVhsv(266, 75%, 64%)
CMYKcmyk(42.6%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.53, 48.83, -56.52)
CIE-LCHlch(30.53, 74.69, 310.82°)
OKLaboklab(42.31% 0.0851 -0.1617)
OKLCHoklch(42.31% 0.183 297.8)
XYZxyz(11.7929, 6.4532, 34.7997)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28A2 #6DA228
analogous
#2830A2 #5D28A2 #9A28A2
triadic
#5D28A2 #A25D28 #28A25D
tetradic
#5D28A2 #A22830 #6DA228 #28A29A
square
#5D28A2 #A22830 #6DA228 #28A29A
split-complementary
#5D28A2 #A29A28 #30A228
monochromatic
#251040 #411C71 #5D28A2 #7A39CE #9B6ADA

Accessibility & contrast

On white

9.17
#5D28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5D28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28A2
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28A2#FFFFFF#000000##FFFFFF
##5D28A21.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4B4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d28a2;
/* rgb */ color: rgb(93, 40, 162);
/* oklch */ color: oklch(42.3% 0.183 297.8);
Tailwind
colors: {
  custom: {
    50: '#9167be',
    500: '#5d28a2',
    950: '#000000',
  },
}
SCSS
$custom: #5d28a2;
$custom-light: #9167be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28a2",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 266.066,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42306,
    "c": 0.18269,
    "h": 297.8
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#5D28A2
secondary
#99C165
accent
#E4449E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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