#5C28A8#5C28A8

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

Color values

HEX#5C28A8
RGBrgb(92, 40, 168)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 76%, 66%)
CMYKcmyk(45.2%, 76.2%, 0%, 34.1%)
CIE-LABlab(30.93, 50.22, -59.50)
CIE-LCHlch(30.93, 77.86, 310.17°)
OKLaboklab(42.72% 0.0821 -0.1704)
OKLCHoklch(42.72% 0.189 295.7)
XYZxyz(12.2384, 6.6197, 37.6711)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28A8 #74A828
analogous
#2834A8 #5C28A8 #9C28A8
triadic
#5C28A8 #A85C28 #28A85C
tetradic
#5C28A8 #A82834 #74A828 #28A89C
square
#5C28A8 #A82834 #74A828 #28A89C
split-complementary
#5C28A8 #A89C28 #34A828
monochromatic
#261045 #411C77 #5C28A8 #793DD1 #9B6EDC

Accessibility & contrast

On white

9.04
#5C28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C28A8
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28A8#FFFFFF#000000##FFFFFF
##5C28A81.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#474A66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c28a8;
/* rgb */ color: rgb(92, 40, 168);
/* oklch */ color: oklch(42.7% 0.189 295.7);
Tailwind
colors: {
  custom: {
    50: '#9268c3',
    500: '#5c28a8',
    950: '#000000',
  },
}
SCSS
$custom: #5c28a8;
$custom-light: #9268c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28a8",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 264.375,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42718,
    "c": 0.18917,
    "h": 295.7
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#5C28A8
secondary
#9EC369
accent
#E543A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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