#5A30AB#5A30AB

#5A30AB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.184 H 292.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5A30AB
RGBrgb(90, 48, 171)
HSLhsl(260, 56%, 43%)
HSVhsv(260, 72%, 67%)
CMYKcmyk(47.4%, 71.9%, 0%, 32.9%)
CIE-LABlab(32.32, 46.82, -59.03)
CIE-LCHlch(32.32, 75.34, 308.42°)
OKLaboklab(43.73% 0.0712 -0.1692)
OKLCHoklch(43.73% 0.184 292.8)
XYZxyz(12.6220, 7.2274, 39.2502)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30AB #81AB30
analogous
#3043AB #5A30AB #9730AB
triadic
#5A30AB #AB5A30 #30AB5A
tetradic
#5A30AB #AB3043 #81AB30 #30AB97
square
#5A30AB #AB3043 #81AB30 #30AB97
split-complementary
#5A30AB #AB9730 #43AB30
monochromatic
#28154B #41237B #5A30AB #784CCD #9C7BDA

Accessibility & contrast

On white

8.59
#5A30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A30AB
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30AB#FFFFFF#000000##FFFFFF
##5A30AB1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#41506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a30ab;
/* rgb */ color: rgb(90, 48, 171);
/* oklch */ color: oklch(43.7% 0.184 292.8);
Tailwind
colors: {
  custom: {
    50: '#906cc5',
    500: '#5a30ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a30ab;
$custom-light: #906cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30ab",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 260.488,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43729,
    "c": 0.18357,
    "h": 292.8
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#5A30AB
secondary
#A8C374
accent
#DF48AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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