#5C28A5#5C28A5

#5C28A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.186 H 296.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5C28A5
RGBrgb(92, 40, 165)
HSLhsl(265, 61%, 40%)
HSVhsv(265, 76%, 65%)
CMYKcmyk(44.2%, 75.8%, 0%, 35.3%)
CIE-LABlab(30.66, 49.44, -58.12)
CIE-LCHlch(30.66, 76.30, 310.38°)
OKLaboklab(42.45% 0.0828 -0.1664)
OKLCHoklch(42.45% 0.186 296.5)
XYZxyz(11.9622, 6.5092, 36.2162)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C28A5 #71A528
analogous
#2832A5 #5C28A5 #9B28A5
triadic
#5C28A5 #A55C28 #28A55C
tetradic
#5C28A5 #A52832 #71A528 #28A59B
square
#5C28A5 #A52832 #71A528 #28A59B
split-complementary
#5C28A5 #A59B28 #32A528
monochromatic
#251042 #411C74 #5C28A5 #793BCF #9A6CDB

Accessibility & contrast

On white

9.12
#5C28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5C28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C28A5
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C28A5#FFFFFF#000000##FFFFFF
##5C28A51.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#484965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c28a5;
/* rgb */ color: rgb(92, 40, 165);
/* oklch */ color: oklch(42.5% 0.186 296.5);
Tailwind
colors: {
  custom: {
    50: '#9167c1',
    500: '#5c28a5',
    950: '#000000',
  },
}
SCSS
$custom: #5c28a5;
$custom-light: #9167c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c28a5",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 264.96,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42453,
    "c": 0.18588,
    "h": 296.5
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#5C28A5
secondary
#9CC267
accent
#E444A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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