#5A30AA#5A30AA

#5A30AA is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.182 H 293.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5A30AA
RGBrgb(90, 48, 170)
HSLhsl(261, 56%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(47.1%, 71.8%, 0%, 33.3%)
CIE-LABlab(32.23, 46.55, -58.57)
CIE-LCHlch(32.23, 74.81, 308.48°)
OKLaboklab(43.64% 0.0714 -0.1678)
OKLCHoklch(43.64% 0.182 293)
XYZxyz(12.5271, 7.1894, 38.7501)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30AA #80AA30
analogous
#3043AA #5A30AA #9730AA
triadic
#5A30AA #AA5A30 #30AA5A
tetradic
#5A30AA #AA3043 #80AA30 #30AA97
square
#5A30AA #AA3043 #80AA30 #30AA97
split-complementary
#5A30AA #AA9730 #43AA30
monochromatic
#27154B #41237A #5A30AA #774BCC #9B7BDA

Accessibility & contrast

On white

8.61
#5A30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30AA
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30AA#FFFFFF#000000##FFFFFF
##5A30AA1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#424F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a30aa;
/* rgb */ color: rgb(90, 48, 170);
/* oklch */ color: oklch(43.6% 0.182 293.0);
Tailwind
colors: {
  custom: {
    50: '#906cc4',
    500: '#5a30aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a30aa;
$custom-light: #906cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30aa",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 260.656,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43643,
    "c": 0.18239,
    "h": 293
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#5A30AA
secondary
#A7C274
accent
#DF49AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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