#5A30C2#5A30C2

#5A30C2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.210 H 288.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5A30C2
RGBrgb(90, 48, 194)
HSLhsl(257, 60%, 47%)
HSVhsv(257, 75%, 76%)
CMYKcmyk(53.6%, 75.3%, 0%, 23.9%)
CIE-LABlab(34.36, 53.19, -69.32)
CIE-LCHlch(34.36, 87.37, 307.50°)
OKLaboklab(45.79% 0.0658 -0.1994)
OKLCHoklch(45.79% 0.21 288.3)
XYZxyz(15.0081, 8.1819, 51.8169)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30C2 #98C230
analogous
#304FC2 #5A30C2 #A330C2
triadic
#5A30C2 #C25A30 #30C25A
tetradic
#5A30C2 #C2304F #98C230 #30C2A3
square
#5A30C2 #C2304F #98C230 #30C2A3
split-complementary
#5A30C2 #C2A330 #4FC230
monochromatic
#2C1860 #432491 #5A30C2 #7D59D6 #A48AE2

Accessibility & contrast

On white

7.96
#5A30C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5A30C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30C2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30C2#FFFFFF#000000##FFFFFF
##5A30C21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#305977
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a30c2;
/* rgb */ color: rgb(90, 48, 194);
/* oklch */ color: oklch(45.8% 0.210 288.3);
Tailwind
colors: {
  custom: {
    50: '#936dd6',
    500: '#5a30c2',
    950: '#000000',
  },
}
SCSS
$custom: #5a30c2;
$custom-light: #936dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30c2",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 257.26,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45794,
    "c": 0.20993,
    "h": 288.3
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#5A30C2
secondary
#B7CC82
accent
#E344B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A30C2

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

Preview Lab → · Contrast checker → · Palette generator →

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