#5D28A3#5D28A3

#5D28A3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.184 H 297.5°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5D28A3
RGBrgb(93, 40, 163)
HSLhsl(266, 61%, 40%)
HSVhsv(266, 75%, 64%)
CMYKcmyk(42.9%, 75.5%, 0%, 36.1%)
CIE-LABlab(30.61, 49.09, -56.99)
CIE-LCHlch(30.61, 75.21, 310.74°)
OKLaboklab(42.39% 0.0848 -0.163)
OKLCHoklch(42.39% 0.184 297.5)
XYZxyz(11.8821, 6.4889, 35.2697)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28A3 #6EA328
analogous
#2830A3 #5D28A3 #9B28A3
triadic
#5D28A3 #A35D28 #28A35D
tetradic
#5D28A3 #A32830 #6EA328 #28A39B
square
#5D28A3 #A32830 #6EA328 #28A39B
split-complementary
#5D28A3 #A39B28 #30A328
monochromatic
#251041 #411C72 #5D28A3 #7A3ACF #9B6BDB

Accessibility & contrast

On white

9.14
#5D28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28A3
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28A3#FFFFFF#000000##FFFFFF
##5D28A31.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#4B4864
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d28a3;
/* rgb */ color: rgb(93, 40, 163);
/* oklch */ color: oklch(42.4% 0.184 297.5);
Tailwind
colors: {
  custom: {
    50: '#9267bf',
    500: '#5d28a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d28a3;
$custom-light: #9267bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28a3",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 265.854,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42393,
    "c": 0.18379,
    "h": 297.5
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#5D28A3
secondary
#9AC166
accent
#E4449F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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