#5B28A8#5B28A8

#5B28A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.189 H 295.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B28A8
RGBrgb(91, 40, 168)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 76%, 66%)
CMYKcmyk(45.8%, 76.2%, 0%, 34.1%)
CIE-LABlab(30.80, 50.06, -59.70)
CIE-LCHlch(30.80, 77.91, 309.98°)
OKLaboklab(42.61% 0.0806 -0.1711)
OKLCHoklch(42.61% 0.189 295.2)
XYZxyz(12.1392, 6.5686, 37.6665)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B28A8 #75A828
analogous
#2835A8 #5B28A8 #9B28A8
triadic
#5B28A8 #A85B28 #28A85B
tetradic
#5B28A8 #A82835 #75A828 #28A89B
square
#5B28A8 #A82835 #75A828 #28A89B
split-complementary
#5B28A8 #A89B28 #35A828
monochromatic
#251045 #401C77 #5B28A8 #783DD1 #9A6EDC

Accessibility & contrast

On white

9.08
#5B28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B28A8
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B28A8#FFFFFF#000000##FFFFFF
##5B28A81.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#454A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b28a8;
/* rgb */ color: rgb(91, 40, 168);
/* oklch */ color: oklch(42.6% 0.189 295.2);
Tailwind
colors: {
  custom: {
    50: '#9168c3',
    500: '#5b28a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b28a8;
$custom-light: #9168c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b28a8",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 263.906,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.18909,
    "h": 295.2
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#5B28A8
secondary
#9FC369
accent
#E543A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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