#5A28A8#5A28A8

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

Color values

HEX#5A28A8
RGBrgb(90, 40, 168)
HSLhsl(263, 62%, 41%)
HSVhsv(263, 76%, 66%)
CMYKcmyk(46.4%, 76.2%, 0%, 34.1%)
CIE-LABlab(30.68, 49.90, -59.90)
CIE-LCHlch(30.68, 77.96, 309.79°)
OKLaboklab(42.49% 0.079 -0.1717)
OKLCHoklch(42.49% 0.189 294.7)
XYZxyz(12.0412, 6.5181, 37.6619)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28A8 #76A828
analogous
#2836A8 #5A28A8 #9A28A8
triadic
#5A28A8 #A85A28 #28A85A
tetradic
#5A28A8 #A82836 #76A828 #28A89A
square
#5A28A8 #A82836 #76A828 #28A89A
split-complementary
#5A28A8 #A89A28 #36A828
monochromatic
#251045 #401C77 #5A28A8 #763DD1 #996EDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A28A8#FFFFFF#000000##FFFFFF
##5A28A81.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)
#0049AC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#434B66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a28a8;
/* rgb */ color: rgb(90, 40, 168);
/* oklch */ color: oklch(42.5% 0.189 294.7);
Tailwind
colors: {
  custom: {
    50: '#9067c3',
    500: '#5a28a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a28a8;
$custom-light: #9067c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28a8",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 263.438,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42494,
    "c": 0.18903,
    "h": 294.7
  },
  "luminance": 0.06518
}

Semantic roles & 50–950 ramp

primary
#5A28A8
secondary
#A0C369
accent
#E543A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5A28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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