#5C28AF#5C28AF

#5C28AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.197 H 294.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5C28AF
RGBrgb(92, 40, 175)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(47.4%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.55, 52.05, -62.67)
CIE-LCHlch(31.55, 81.47, 309.71°)
OKLaboklab(43.35% 0.0802 -0.1798)
OKLCHoklch(43.35% 0.197 294)
XYZxyz(12.9082, 6.8876, 41.1985)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28AF #7BAF28
analogous
#2838AF #5C28AF #A028AF
triadic
#5C28AF #AF5C28 #28AF5C
tetradic
#5C28AF #AF2838 #7BAF28 #28AFA0
square
#5C28AF #AF2838 #7BAF28 #28AFA0
split-complementary
#5C28AF #AFA028 #38AF28
monochromatic
#28114B #421D7D #5C28AF #7941D4 #9C73DF

Accessibility & contrast

On white

8.83
#5C28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C28AF
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28AF#FFFFFF#000000##FFFFFF
##5C28AF1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#434D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c28af;
/* rgb */ color: rgb(92, 40, 175);
/* oklch */ color: oklch(43.3% 0.197 294.0);
Tailwind
colors: {
  custom: {
    50: '#9268c8',
    500: '#5c28af',
    950: '#000000',
  },
}
SCSS
$custom: #5c28af;
$custom-light: #9268c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28af",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 263.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43347,
    "c": 0.19682,
    "h": 294
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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