#5A30B5#5A30B5

#5A30B5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.195 H 290.7°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5A30B5
RGBrgb(90, 48, 181)
HSLhsl(259, 58%, 45%)
HSVhsv(259, 73%, 71%)
CMYKcmyk(50.3%, 73.5%, 0%, 29%)
CIE-LABlab(33.19, 49.59, -63.58)
CIE-LCHlch(33.19, 80.63, 307.95°)
OKLaboklab(44.61% 0.069 -0.1825)
OKLCHoklch(44.61% 0.195 290.7)
XYZxyz(13.6115, 7.6232, 44.4613)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30B5 #8BB530
analogous
#3049B5 #5A30B5 #9C30B5
triadic
#5A30B5 #B55A30 #30B55A
tetradic
#5A30B5 #B53049 #8BB530 #30B59C
square
#5A30B5 #B53049 #8BB530 #30B59C
split-complementary
#5A30B5 #B59C30 #49B530
monochromatic
#2A1654 #422385 #5A30B5 #7A51D1 #9F82DE

Accessibility & contrast

On white

8.32
#5A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5A30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30B5
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30B5#FFFFFF#000000##FFFFFF
##5A30B51.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#3B5470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a30b5;
/* rgb */ color: rgb(90, 48, 181);
/* oklch */ color: oklch(44.6% 0.195 290.7);
Tailwind
colors: {
  custom: {
    50: '#926ccc',
    500: '#5a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #5a30b5;
$custom-light: #926ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30b5",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 258.947,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4461,
    "c": 0.19513,
    "h": 290.7
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#5A30B5
secondary
#AFC77A
accent
#E146B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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