#5D28B1#5D28B1

#5D28B1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.199 H 294.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5D28B1
RGBrgb(93, 40, 177)
HSLhsl(263, 63%, 43%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(47.5%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.85, 52.73, -63.37)
CIE-LCHlch(31.85, 82.44, 309.76°)
OKLaboklab(43.64% 0.0811 -0.1818)
OKLCHoklch(43.64% 0.199 294)
XYZxyz(13.2066, 7.0187, 42.2453)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28B1 #7CB128
analogous
#2837B1 #5D28B1 #A228B1
triadic
#5D28B1 #B15D28 #28B15D
tetradic
#5D28B1 #B12837 #7CB128 #28B1A2
square
#5D28B1 #B12837 #7CB128 #28B1A2
split-complementary
#5D28B1 #B1A228 #37B128
monochromatic
#29114D #431D7F #5D28B1 #7B42D4 #9E74E0

Accessibility & contrast

On white

8.74
#5D28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D28B1
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28B1#FFFFFF#000000##FFFFFF
##5D28B11.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#444E6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d28b1;
/* rgb */ color: rgb(93, 40, 177);
/* oklch */ color: oklch(43.6% 0.199 294.0);
Tailwind
colors: {
  custom: {
    50: '#9368c9',
    500: '#5d28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5d28b1;
$custom-light: #9368c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28b1",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 263.212,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.19905,
    "h": 294
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#5D28B1
secondary
#A4C76E
accent
#E642A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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