#5A30AF#5A30AF

#5A30AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.188 H 291.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5A30AF
RGBrgb(90, 48, 175)
HSLhsl(260, 57%, 44%)
HSVhsv(260, 73%, 69%)
CMYKcmyk(48.6%, 72.6%, 0%, 31.4%)
CIE-LABlab(32.66, 47.93, -60.86)
CIE-LCHlch(32.66, 77.47, 308.22°)
OKLaboklab(44.08% 0.0703 -0.1746)
OKLCHoklch(44.08% 0.188 291.9)
XYZxyz(13.0091, 7.3822, 41.2886)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30AF #85AF30
analogous
#3045AF #5A30AF #9930AF
triadic
#5A30AF #AF5A30 #30AF5A
tetradic
#5A30AF #AF3045 #85AF30 #30AF99
square
#5A30AF #AF3045 #85AF30 #30AF99
split-complementary
#5A30AF #AF9930 #45AF30
monochromatic
#29164F #41237F #5A30AF #784ECE #9D7EDC

Accessibility & contrast

On white

8.48
#5A30AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A30AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30AF
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30AF#FFFFFF#000000##FFFFFF
##5A30AF1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#3F516C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a30af;
/* rgb */ color: rgb(90, 48, 175);
/* oklch */ color: oklch(44.1% 0.188 291.9);
Tailwind
colors: {
  custom: {
    50: '#916cc8',
    500: '#5a30af',
    950: '#000000',
  },
}
SCSS
$custom: #5a30af;
$custom-light: #916cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30af",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 259.843,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44078,
    "c": 0.18821,
    "h": 291.9
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#5A30AF
secondary
#ABC476
accent
#E048AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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