#5C28B0#5C28B0

#5C28B0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.198 H 293.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5C28B0
RGBrgb(92, 40, 176)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 77%, 69%)
CMYKcmyk(47.7%, 77.3%, 0%, 31%)
CIE-LABlab(31.64, 52.31, -63.12)
CIE-LCHlch(31.64, 81.98, 309.65°)
OKLaboklab(43.44% 0.0799 -0.1811)
OKLCHoklch(43.44% 0.198 293.8)
XYZxyz(13.0067, 6.9271, 41.7176)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28B0 #7CB028
analogous
#2838B0 #5C28B0 #A028B0
triadic
#5C28B0 #B05C28 #28B05C
tetradic
#5C28B0 #B02838 #7CB028 #28B0A0
square
#5C28B0 #B02838 #7CB028 #28B0A0
split-complementary
#5C28B0 #B0A028 #38B028
monochromatic
#28114C #421D7E #5C28B0 #7941D4 #9C73DF

Accessibility & contrast

On white

8.80
#5C28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C28B0
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28B0#FFFFFF#000000##FFFFFF
##5C28B01.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#424E6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c28b0;
/* rgb */ color: rgb(92, 40, 176);
/* oklch */ color: oklch(43.4% 0.198 293.8);
Tailwind
colors: {
  custom: {
    50: '#9368c9',
    500: '#5c28b0',
    950: '#000000',
  },
}
SCSS
$custom: #5c28b0;
$custom-light: #9368c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28b0",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 262.941,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43438,
    "c": 0.19791,
    "h": 293.8
  },
  "luminance": 0.06927
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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