#5D28B0#5D28B0

#5D28B0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.198 H 294.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5D28B0
RGBrgb(93, 40, 176)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(47.2%, 77.3%, 0%, 31%)
CIE-LABlab(31.76, 52.47, -62.92)
CIE-LCHlch(31.76, 81.93, 309.82°)
OKLaboklab(43.55% 0.0814 -0.1805)
OKLCHoklch(43.55% 0.198 294.3)
XYZxyz(13.1073, 6.9789, 41.7223)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28B0 #7BB028
analogous
#2837B0 #5D28B0 #A128B0
triadic
#5D28B0 #B05D28 #28B05D
tetradic
#5D28B0 #B02837 #7BB028 #28B0A1
square
#5D28B0 #B02837 #7BB028 #28B0A1
split-complementary
#5D28B0 #B0A128 #37B028
monochromatic
#28114C #431D7E #5D28B0 #7A41D4 #9D73DF

Accessibility & contrast

On white

8.77
#5D28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28B0
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28B0#FFFFFF#000000##FFFFFF
##5D28B01.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#444E6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d28b0;
/* rgb */ color: rgb(93, 40, 176);
/* oklch */ color: oklch(43.5% 0.198 294.3);
Tailwind
colors: {
  custom: {
    50: '#9368c9',
    500: '#5d28b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d28b0;
$custom-light: #9368c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28b0",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 263.382,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43548,
    "c": 0.19796,
    "h": 294.3
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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