#5A28B0#5A28B0

#5A28B0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.198 H 292.9°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5A28B0
RGBrgb(90, 40, 176)
HSLhsl(262, 63%, 42%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(48.9%, 77.3%, 0%, 31%)
CIE-LABlab(31.41, 52.01, -63.52)
CIE-LCHlch(31.41, 82.10, 309.31°)
OKLaboklab(43.22% 0.0768 -0.1823)
OKLCHoklch(43.22% 0.198 292.9)
XYZxyz(12.8095, 6.8254, 41.7084)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28B0 #7EB028
analogous
#283AB0 #5A28B0 #9E28B0
triadic
#5A28B0 #B05A28 #28B05A
tetradic
#5A28B0 #B0283A #7EB028 #28B09E
square
#5A28B0 #B0283A #7EB028 #28B09E
split-complementary
#5A28B0 #B09E28 #3AB028
monochromatic
#27114C #411D7E #5A28B0 #7741D4 #9B73DF

Accessibility & contrast

On white

8.88
#5A28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28B0
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28B0#FFFFFF#000000##FFFFFF
##5A28B01.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#3F4E6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a28b0;
/* rgb */ color: rgb(90, 40, 176);
/* oklch */ color: oklch(43.2% 0.198 292.9);
Tailwind
colors: {
  custom: {
    50: '#9168c9',
    500: '#5a28b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a28b0;
$custom-light: #9168c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28b0",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 262.059,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43221,
    "c": 0.19783,
    "h": 292.9
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

primary
#5A28B0
secondary
#A6C66D
accent
#E642AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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