#5C28A2#5C28A2

#5C28A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.183 H 297.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5C28A2
RGBrgb(92, 40, 162)
HSLhsl(266, 60%, 40%)
HSVhsv(266, 75%, 64%)
CMYKcmyk(43.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.40, 48.66, -56.73)
CIE-LCHlch(30.40, 74.74, 310.62°)
OKLaboklab(42.19% 0.0836 -0.1623)
OKLCHoklch(42.19% 0.183 297.2)
XYZxyz(11.6923, 6.4013, 34.7950)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28A2 #6EA228
analogous
#2831A2 #5C28A2 #9928A2
triadic
#5C28A2 #A25C28 #28A25C
tetradic
#5C28A2 #A22831 #6EA228 #28A299
square
#5C28A2 #A22831 #6EA228 #28A299
split-complementary
#5C28A2 #A29928 #31A228
monochromatic
#241040 #401C71 #5C28A2 #7939CE #9A6ADA

Accessibility & contrast

On white

9.21
#5C28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C28A2
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28A2#FFFFFF#000000##FFFFFF
##5C28A21.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4A4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c28a2;
/* rgb */ color: rgb(92, 40, 162);
/* oklch */ color: oklch(42.2% 0.183 297.2);
Tailwind
colors: {
  custom: {
    50: '#9167be',
    500: '#5c28a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c28a2;
$custom-light: #9167be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28a2",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 265.574,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.18257,
    "h": 297.2
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#5C28A2
secondary
#9AC165
accent
#E444A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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