#5A30C6#5A30C6

#5A30C6 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.214 H 287.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5A30C6
RGBrgb(90, 48, 198)
HSLhsl(257, 61%, 48%)
HSVhsv(257, 76%, 78%)
CMYKcmyk(54.5%, 75.8%, 0%, 22.4%)
CIE-LABlab(34.73, 54.29, -71.05)
CIE-LCHlch(34.73, 89.42, 307.38°)
OKLaboklab(46.17% 0.0647 -0.2044)
OKLCHoklch(46.17% 0.214 287.6)
XYZxyz(15.4634, 8.3640, 54.2147)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30C6 #9CC630
analogous
#3051C6 #5A30C6 #A530C6
triadic
#5A30C6 #C65A30 #30C65A
tetradic
#5A30C6 #C63051 #9CC630 #30C6A5
square
#5A30C6 #C63051 #9CC630 #30C6A5
split-complementary
#5A30C6 #C6A530 #51C630
monochromatic
#2D1863 #442495 #5A30C6 #7E5CD7 #A58DE3

Accessibility & contrast

On white

7.86
#5A30C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A30C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30C6
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30C6#FFFFFF#000000##FFFFFF
##5A30C61.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CA
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#2C5A79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a30c6;
/* rgb */ color: rgb(90, 48, 198);
/* oklch */ color: oklch(46.2% 0.214 287.6);
Tailwind
colors: {
  custom: {
    50: '#946dd9',
    500: '#5a30c6',
    950: '#000000',
  },
}
SCSS
$custom: #5a30c6;
$custom-light: #946dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30c6",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 198
  },
  "hsl": {
    "h": 256.8,
    "s": 60.976,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46167,
    "c": 0.21443,
    "h": 287.6
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#5A30C6
secondary
#B9CE84
accent
#E444B7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5A30C6

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

Preview Lab → · Contrast checker → · Palette generator →

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