#5A30B7#5A30B7

#5A30B7 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.197 H 290.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5A30B7
RGBrgb(90, 48, 183)
HSLhsl(259, 58%, 45%)
HSVhsv(259, 74%, 72%)
CMYKcmyk(50.8%, 73.8%, 0%, 28.2%)
CIE-LABlab(33.36, 50.14, -64.47)
CIE-LCHlch(33.36, 81.67, 307.87°)
OKLaboklab(44.79% 0.0685 -0.1852)
OKLCHoklch(44.79% 0.197 290.3)
XYZxyz(13.8182, 7.7059, 45.5499)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30B7 #8DB730
analogous
#3049B7 #5A30B7 #9E30B7
triadic
#5A30B7 #B75A30 #30B75A
tetradic
#5A30B7 #B73049 #8DB730 #30B79E
square
#5A30B7 #B73049 #8DB730 #30B79E
split-complementary
#5A30B7 #B79E30 #49B730
monochromatic
#2A1756 #422387 #5A30B7 #7A52D2 #9F83DE

Accessibility & contrast

On white

8.26
#5A30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30B7
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30B7#FFFFFF#000000##FFFFFF
##5A30B71.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#395471
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a30b7;
/* rgb */ color: rgb(90, 48, 183);
/* oklch */ color: oklch(44.8% 0.197 290.3);
Tailwind
colors: {
  custom: {
    50: '#926dce',
    500: '#5a30b7',
    950: '#000000',
  },
}
SCSS
$custom: #5a30b7;
$custom-light: #926dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30b7",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 258.667,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44789,
    "c": 0.19743,
    "h": 290.3
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#5A30B7
secondary
#B0C87B
accent
#E246B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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