#5A28D1#5A28D1

#5A28D1 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.4% C 0.233 H 286.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5A28D1
RGBrgb(90, 40, 209)
HSLhsl(258, 68%, 49%)
HSVhsv(258, 81%, 82%)
CMYKcmyk(56.9%, 80.9%, 0%, 18%)
CIE-LABlab(34.59, 60.76, -77.69)
CIE-LCHlch(34.59, 98.63, 308.03°)
OKLaboklab(46.39% 0.0665 -0.2238)
OKLCHoklch(46.39% 0.233 286.6)
XYZxyz(16.4804, 8.2937, 61.0417)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28D1 #9FD128
analogous
#284BD1 #5A28D1 #AE28D1
triadic
#5A28D1 #D15A28 #28D15A
tetradic
#5A28D1 #D1284B #9FD128 #28D1AE
square
#5A28D1 #D1284B #9FD128 #28D1AE
split-complementary
#5A28D1 #D1AE28 #4BD128
monochromatic
#2E146A #441E9E #5A28D1 #7F57DF #A68BE9

Accessibility & contrast

On white

7.90
#5A28D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A28D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28D1
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28D1#FFFFFF#000000##FFFFFF
##5A28D11.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D6
Deuteranopia (green-blind)
#004CCE
Tritanopia (blue-blind)
#1E5C7E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a28d1;
/* rgb */ color: rgb(90, 40, 209);
/* oklch */ color: oklch(46.4% 0.233 286.6);
Tailwind
colors: {
  custom: {
    50: '#966ae0',
    500: '#5a28d1',
    950: '#000000',
  },
}
SCSS
$custom: #5a28d1;
$custom-light: #966ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28d1",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 257.751,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.23344,
    "h": 286.6
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#5A28D1
secondary
#BBD382
accent
#EB3DB7
background
#FAF6FE
surface
#F3EBFC
border
#CDC6D5
text
#0F0715
muted
#7F7A84

Preview Lab

Preview with #5A28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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