#5A30C8#5A30C8

#5A30C8 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.217 H 287.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5A30C8
RGBrgb(90, 48, 200)
HSLhsl(257, 61%, 49%)
HSVhsv(257, 76%, 78%)
CMYKcmyk(55%, 76%, 0%, 21.6%)
CIE-LABlab(34.92, 54.85, -71.91)
CIE-LCHlch(34.92, 90.44, 307.33°)
OKLaboklab(46.36% 0.0642 -0.207)
OKLCHoklch(46.36% 0.217 287.2)
XYZxyz(15.6956, 8.4569, 55.4377)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30C8 #9EC830
analogous
#3052C8 #5A30C8 #A630C8
triadic
#5A30C8 #C85A30 #30C85A
tetradic
#5A30C8 #C83052 #9EC830 #30C8A6
square
#5A30C8 #C83052 #9EC830 #30C8A6
split-complementary
#5A30C8 #C8A630 #52C830
monochromatic
#2E1865 #442497 #5A30C8 #7F5DD8 #A68EE4

Accessibility & contrast

On white

7.80
#5A30C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A30C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30C8
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30C8#FFFFFF#000000##FFFFFF
##5A30C81.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#2A5B7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a30c8;
/* rgb */ color: rgb(90, 48, 200);
/* oklch */ color: oklch(46.4% 0.217 287.2);
Tailwind
colors: {
  custom: {
    50: '#946dda',
    500: '#5a30c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a30c8;
$custom-light: #946dda;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30c8",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 200
  },
  "hsl": {
    "h": 256.579,
    "s": 61.29,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46355,
    "c": 0.21668,
    "h": 287.2
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#5A30C8
secondary
#BACE85
accent
#E443B8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5A30C8

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

Preview Lab → · Contrast checker → · Palette generator →

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