#5D28A8#5D28A8

#5D28A8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.189 H 296.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5D28A8
RGBrgb(93, 40, 168)
HSLhsl(265, 62%, 41%)
HSVhsv(265, 76%, 66%)
CMYKcmyk(44.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(31.05, 50.38, -59.29)
CIE-LCHlch(31.05, 77.81, 310.36°)
OKLaboklab(42.83% 0.0836 -0.1698)
OKLCHoklch(42.83% 0.189 296.2)
XYZxyz(12.3390, 6.6716, 37.6758)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28A8 #73A828
analogous
#2833A8 #5D28A8 #9D28A8
triadic
#5D28A8 #A85D28 #28A85D
tetradic
#5D28A8 #A82833 #73A828 #28A89D
square
#5D28A8 #A82833 #73A828 #28A89D
split-complementary
#5D28A8 #A89D28 #33A828
monochromatic
#261045 #421C77 #5D28A8 #7A3DD1 #9C6EDC

Accessibility & contrast

On white

9.00
#5D28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5D28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28A8
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28A8#FFFFFF#000000##FFFFFF
##5D28A81.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#494A66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d28a8;
/* rgb */ color: rgb(93, 40, 168);
/* oklch */ color: oklch(42.8% 0.189 296.2);
Tailwind
colors: {
  custom: {
    50: '#9268c3',
    500: '#5d28a8',
    950: '#000000',
  },
}
SCSS
$custom: #5d28a8;
$custom-light: #9268c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28a8",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 264.844,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42831,
    "c": 0.18926,
    "h": 296.2
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#5D28A8
secondary
#9EC369
accent
#E543A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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