#5A3ACF#5A3ACF

#5A3ACF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.215 H 284.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5A3ACF
RGBrgb(90, 58, 207)
HSLhsl(253, 61%, 52%)
HSVhsv(253, 72%, 81%)
CMYKcmyk(56.5%, 72%, 0%, 18.8%)
CIE-LABlab(37.31, 51.89, -72.06)
CIE-LCHlch(37.31, 88.80, 305.76°)
OKLaboklab(48.23% 0.0551 -0.2074)
OKLCHoklch(48.23% 0.215 284.9)
XYZxyz(16.9886, 9.7037, 59.9972)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ACF #AFCF3A
analogous
#3A65CF #5A3ACF #A53ACF
triadic
#5A3ACF #CF5A3A #3ACF5A
tetradic
#5A3ACF #CF3A65 #AFCF3A #3ACFA5
square
#5A3ACF #CF3A65 #AFCF3A #3ACFA5
split-complementary
#5A3ACF #CFA53A #65CF3A
monochromatic
#2F1C73 #4328A4 #5A3ACF #836BDB #AC9CE7

Accessibility & contrast

On white

7.14
#5A3ACF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5A3ACF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3ACF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ACF#FFFFFF#000000##FFFFFF
##5A3ACF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#1F6381
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3acf;
/* rgb */ color: rgb(90, 58, 207);
/* oklch */ color: oklch(48.2% 0.215 284.9);
Tailwind
colors: {
  custom: {
    50: '#9573df',
    500: '#5a3acf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3acf;
$custom-light: #9573df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3acf",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 207
  },
  "hsl": {
    "h": 252.886,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48233,
    "c": 0.21463,
    "h": 284.9
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#5A3ACF
secondary
#C5D392
accent
#E444C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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