#5B28AF#5B28AF

#5B28AF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.197 H 293.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5B28AF
RGBrgb(91, 40, 175)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(48%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.43, 51.90, -62.87)
CIE-LCHlch(31.43, 81.53, 309.54°)
OKLaboklab(43.24% 0.0786 -0.1804)
OKLCHoklch(43.24% 0.197 293.6)
XYZxyz(12.8089, 6.8365, 41.1938)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B28AF #7CAF28
analogous
#2838AF #5B28AF #9F28AF
triadic
#5B28AF #AF5B28 #28AF5B
tetradic
#5B28AF #AF2838 #7CAF28 #28AF9F
square
#5B28AF #AF2838 #7CAF28 #28AF9F
split-complementary
#5B28AF #AF9F28 #38AF28
monochromatic
#27114B #411D7D #5B28AF #7841D4 #9B73DF

Accessibility & contrast

On white

8.87
#5B28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B28AF
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B28AF#FFFFFF#000000##FFFFFF
##5B28AF1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#414D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b28af;
/* rgb */ color: rgb(91, 40, 175);
/* oklch */ color: oklch(43.2% 0.197 293.6);
Tailwind
colors: {
  custom: {
    50: '#9268c8',
    500: '#5b28af',
    950: '#000000',
  },
}
SCSS
$custom: #5b28af;
$custom-light: #9268c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b28af",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 262.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43238,
    "c": 0.19678,
    "h": 293.6
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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