#5B28A9#5B28A9

#5B28A9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.190 H 295.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B28A9
RGBrgb(91, 40, 169)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 76%, 66%)
CMYKcmyk(46.2%, 76.3%, 0%, 33.7%)
CIE-LABlab(30.89, 50.32, -60.16)
CIE-LCHlch(30.89, 78.43, 309.91°)
OKLaboklab(42.7% 0.0803 -0.1724)
OKLCHoklch(42.7% 0.19 295)
XYZxyz(12.2327, 6.6060, 38.1590)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B28A9 #76A928
analogous
#2835A9 #5B28A9 #9B28A9
triadic
#5B28A9 #A95B28 #28A95B
tetradic
#5B28A9 #A92835 #76A928 #28A99B
square
#5B28A9 #A92835 #76A928 #28A99B
split-complementary
#5B28A9 #A99B28 #35A928
monochromatic
#261146 #401C78 #5B28A9 #783DD1 #9A6FDD

Accessibility & contrast

On white

9.05
#5B28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B28A9
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B28A9#FFFFFF#000000##FFFFFF
##5B28A91.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#454B67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b28a9;
/* rgb */ color: rgb(91, 40, 169);
/* oklch */ color: oklch(42.7% 0.190 295.0);
Tailwind
colors: {
  custom: {
    50: '#9168c4',
    500: '#5b28a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b28a9;
$custom-light: #9168c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b28a9",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 263.721,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42695,
    "c": 0.19019,
    "h": 295
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#5B28A9
secondary
#A0C469
accent
#E543A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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