#5A30BC#5A30BC

#5A30BC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.203 H 289.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5A30BC
RGBrgb(90, 48, 188)
HSLhsl(258, 59%, 46%)
HSVhsv(258, 74%, 74%)
CMYKcmyk(52.1%, 74.5%, 0%, 26.3%)
CIE-LABlab(33.81, 51.52, -66.69)
CIE-LCHlch(33.81, 84.28, 307.69°)
OKLaboklab(45.24% 0.0673 -0.1917)
OKLCHoklch(45.24% 0.203 289.3)
XYZxyz(14.3479, 7.9178, 48.3395)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30BC #92BC30
analogous
#304CBC #5A30BC #A030BC
triadic
#5A30BC #BC5A30 #30BC5A
tetradic
#5A30BC #BC304C #92BC30 #30BCA0
square
#5A30BC #BC304C #92BC30 #30BCA0
split-complementary
#5A30BC #BCA030 #4CBC30
monochromatic
#2B175A #43248B #5A30BC #7B55D4 #A186E0

Accessibility & contrast

On white

8.13
#5A30BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A30BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30BC
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30BC#FFFFFF#000000##FFFFFF
##5A30BC1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#355674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a30bc;
/* rgb */ color: rgb(90, 48, 188);
/* oklch */ color: oklch(45.2% 0.203 289.3);
Tailwind
colors: {
  custom: {
    50: '#936dd1',
    500: '#5a30bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a30bc;
$custom-light: #936dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30bc",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 188
  },
  "hsl": {
    "h": 258,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.20314,
    "h": 289.3
  },
  "luminance": 0.07918
}

Semantic roles & 50–950 ramp

primary
#5A30BC
secondary
#B3CA7E
accent
#E345B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A30BC

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

Preview Lab → · Contrast checker → · Palette generator →

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