#5B28B1#5B28B1

#5B28B1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.199 H 293.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5B28B1
RGBrgb(91, 40, 177)
HSLhsl(262, 63%, 43%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(48.6%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.61, 52.43, -63.77)
CIE-LCHlch(31.61, 82.55, 309.43°)
OKLaboklab(43.42% 0.0781 -0.183)
OKLCHoklch(43.42% 0.199 293.1)
XYZxyz(13.0068, 6.9156, 42.2360)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B28B1 #7EB128
analogous
#2839B1 #5B28B1 #A028B1
triadic
#5B28B1 #B15B28 #28B15B
tetradic
#5B28B1 #B12839 #7EB128 #28B1A0
square
#5B28B1 #B12839 #7EB128 #28B1A0
split-complementary
#5B28B1 #B1A028 #39B128
monochromatic
#28114D #411D7F #5B28B1 #7842D4 #9C74E0

Accessibility & contrast

On white

8.81
#5B28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B28B1
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B28B1#FFFFFF#000000##FFFFFF
##5B28B11.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#404E6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b28b1;
/* rgb */ color: rgb(91, 40, 177);
/* oklch */ color: oklch(43.4% 0.199 293.1);
Tailwind
colors: {
  custom: {
    50: '#9268c9',
    500: '#5b28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5b28b1;
$custom-light: #9268c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b28b1",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 262.336,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.19896,
    "h": 293.1
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#5B28B1
secondary
#A6C76E
accent
#E642A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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