#5A30B0#5A30B0

#5A30B0 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.189 H 291.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5A30B0
RGBrgb(90, 48, 176)
HSLhsl(260, 57%, 44%)
HSVhsv(260, 73%, 69%)
CMYKcmyk(48.9%, 72.7%, 0%, 31%)
CIE-LABlab(32.75, 48.20, -61.32)
CIE-LCHlch(32.75, 78.00, 308.17°)
OKLaboklab(44.17% 0.0701 -0.1759)
OKLCHoklch(44.17% 0.189 291.7)
XYZxyz(13.1077, 7.4217, 41.8078)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30B0 #86B030
analogous
#3046B0 #5A30B0 #9A30B0
triadic
#5A30B0 #B05A30 #30B05A
tetradic
#5A30B0 #B03046 #86B030 #30B09A
square
#5A30B0 #B03046 #86B030 #30B09A
split-complementary
#5A30B0 #B09A30 #46B030
monochromatic
#291650 #412380 #5A30B0 #794ECF #9D7EDC

Accessibility & contrast

On white

8.45
#5A30B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A30B0
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30B0#FFFFFF#000000##FFFFFF
##5A30B01.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#3E526D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a30b0;
/* rgb */ color: rgb(90, 48, 176);
/* oklch */ color: oklch(44.2% 0.189 291.7);
Tailwind
colors: {
  custom: {
    50: '#916cc9',
    500: '#5a30b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a30b0;
$custom-light: #916cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30b0",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 176
  },
  "hsl": {
    "h": 259.688,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44166,
    "c": 0.18937,
    "h": 291.7
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#5A30B0
secondary
#ABC577
accent
#E047AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A30B0

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

Preview Lab → · Contrast checker → · Palette generator →

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