#5C28B1#5C28B1

#5C28B1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.199 H 293.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5C28B1
RGBrgb(92, 40, 177)
HSLhsl(263, 63%, 43%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(48%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.73, 52.58, -63.57)
CIE-LCHlch(31.73, 82.49, 309.59°)
OKLaboklab(43.53% 0.0796 -0.1824)
OKLCHoklch(43.53% 0.199 293.6)
XYZxyz(13.1060, 6.9668, 42.2406)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28B1 #7DB128
analogous
#2838B1 #5C28B1 #A128B1
triadic
#5C28B1 #B15C28 #28B15C
tetradic
#5C28B1 #B12838 #7DB128 #28B1A1
square
#5C28B1 #B12838 #7DB128 #28B1A1
split-complementary
#5C28B1 #B1A128 #38B128
monochromatic
#28114D #421D7F #5C28B1 #7942D4 #9D74E0

Accessibility & contrast

On white

8.77
#5C28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C28B1
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28B1#FFFFFF#000000##FFFFFF
##5C28B11.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#424E6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c28b1;
/* rgb */ color: rgb(92, 40, 177);
/* oklch */ color: oklch(43.5% 0.199 293.6);
Tailwind
colors: {
  custom: {
    50: '#9368c9',
    500: '#5c28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5c28b1;
$custom-light: #9368c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28b1",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 262.774,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4353,
    "c": 0.199,
    "h": 293.6
  },
  "luminance": 0.06967
}

Semantic roles & 50–950 ramp

primary
#5C28B1
secondary
#A5C76E
accent
#E642A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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