#5A28A2#5A28A2

#5A28A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.182 H 296.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5A28A2
RGBrgb(90, 40, 162)
HSLhsl(265, 60%, 40%)
HSVhsv(265, 75%, 64%)
CMYKcmyk(44.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.16, 48.32, -57.14)
CIE-LCHlch(30.16, 74.83, 310.21°)
OKLaboklab(41.96% 0.0806 -0.1636)
OKLCHoklch(41.96% 0.182 296.2)
XYZxyz(11.4951, 6.2996, 34.7857)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28A2 #70A228
analogous
#2833A2 #5A28A2 #9728A2
triadic
#5A28A2 #A25A28 #28A25A
tetradic
#5A28A2 #A22833 #70A228 #28A297
square
#5A28A2 #A22833 #70A228 #28A297
split-complementary
#5A28A2 #A29728 #33A228
monochromatic
#231040 #3F1C71 #5A28A2 #7639CE #986ADA

Accessibility & contrast

On white

9.29
#5A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28A2
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28A2#FFFFFF#000000##FFFFFF
##5A28A21.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#474863
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a28a2;
/* rgb */ color: rgb(90, 40, 162);
/* oklch */ color: oklch(42.0% 0.182 296.2);
Tailwind
colors: {
  custom: {
    50: '#9067bf',
    500: '#5a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a28a2;
$custom-light: #9067bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28a2",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 264.59,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41961,
    "c": 0.18237,
    "h": 296.2
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#5A28A2
secondary
#9BC165
accent
#E444A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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