#5C28AB#5C28AB

#5C28AB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.192 H 295.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5C28AB
RGBrgb(92, 40, 171)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 77%, 67%)
CMYKcmyk(46.2%, 76.6%, 0%, 32.9%)
CIE-LABlab(31.19, 51.00, -60.87)
CIE-LCHlch(31.19, 79.41, 309.96°)
OKLaboklab(42.99% 0.0813 -0.1745)
OKLCHoklch(42.99% 0.192 295)
XYZxyz(12.5211, 6.7328, 39.1600)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28AB #77AB28
analogous
#2836AB #5C28AB #9E28AB
triadic
#5C28AB #AB5C28 #28AB5C
tetradic
#5C28AB #AB2836 #77AB28 #28AB9E
square
#5C28AB #AB2836 #77AB28 #28AB9E
split-complementary
#5C28AB #AB9E28 #36AB28
monochromatic
#271148 #411C79 #5C28AB #793ED2 #9B70DE

Accessibility & contrast

On white

8.95
#5C28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C28AB
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28AB#FFFFFF#000000##FFFFFF
##5C28AB1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#454C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c28ab;
/* rgb */ color: rgb(92, 40, 171);
/* oklch */ color: oklch(43.0% 0.192 295.0);
Tailwind
colors: {
  custom: {
    50: '#9268c5',
    500: '#5c28ab',
    950: '#000000',
  },
}
SCSS
$custom: #5c28ab;
$custom-light: #9268c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28ab",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 263.817,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42986,
    "c": 0.19245,
    "h": 295
  },
  "luminance": 0.06733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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