#5A30AC#5A30AC

#5A30AC is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.185 H 292.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5A30AC
RGBrgb(90, 48, 172)
HSLhsl(260, 56%, 43%)
HSVhsv(260, 72%, 67%)
CMYKcmyk(47.7%, 72.1%, 0%, 32.5%)
CIE-LABlab(32.40, 47.10, -59.49)
CIE-LCHlch(32.40, 75.88, 308.37°)
OKLaboklab(43.82% 0.071 -0.1705)
OKLCHoklch(43.82% 0.185 292.6)
XYZxyz(12.7177, 7.2657, 39.7541)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30AC #82AC30
analogous
#3044AC #5A30AC #9830AC
triadic
#5A30AC #AC5A30 #30AC5A
tetradic
#5A30AC #AC3044 #82AC30 #30AC98
square
#5A30AC #AC3044 #82AC30 #30AC98
split-complementary
#5A30AC #AC9830 #44AC30
monochromatic
#28154C #41237C #5A30AC #784CCD #9C7CDA

Accessibility & contrast

On white

8.56
#5A30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30AC
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30AC#FFFFFF#000000##FFFFFF
##5A30AC1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#41506B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a30ac;
/* rgb */ color: rgb(90, 48, 172);
/* oklch */ color: oklch(43.8% 0.185 292.6);
Tailwind
colors: {
  custom: {
    50: '#906cc6',
    500: '#5a30ac',
    950: '#000000',
  },
}
SCSS
$custom: #5a30ac;
$custom-light: #906cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30ac",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 260.323,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43816,
    "c": 0.18472,
    "h": 292.6
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#5A30AC
secondary
#A9C375
accent
#E048AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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