#5A3FAC#5A3FAC

#5A3FAC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.166 H 289.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A3FAC
RGBrgb(90, 63, 172)
HSLhsl(255, 46%, 46%)
HSVhsv(255, 63%, 67%)
CMYKcmyk(47.7%, 63.4%, 0%, 32.5%)
CIE-LABlab(35.41, 38.87, -54.59)
CIE-LCHlch(35.41, 67.01, 305.45°)
OKLaboklab(45.98% 0.0558 -0.1562)
OKLCHoklch(45.98% 0.166 289.7)
XYZxyz(13.4382, 8.7067, 39.9942)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FAC #91AC3F
analogous
#3F5AAC #5A3FAC #903FAC
triadic
#5A3FAC #AC5A3F #3FAC5A
tetradic
#5A3FAC #AC3F5A #91AC3F #3FAC90
square
#5A3FAC #AC3F5A #91AC3F #3FAC90
split-complementary
#5A3FAC #AC903F #5AAC3F
monochromatic
#2B1E52 #432F7F #5A3FAC #7B63C6 #A18FD6

Accessibility & contrast

On white

7.66
#5A3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FAC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FAC#FFFFFF#000000##FFFFFF
##5A3FAC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#40596F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3fac;
/* rgb */ color: rgb(90, 63, 172);
/* oklch */ color: oklch(46.0% 0.166 289.7);
Tailwind
colors: {
  custom: {
    50: '#8f75c5',
    500: '#5a3fac',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fac;
$custom-light: #8f75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fac",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 254.862,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45978,
    "c": 0.16585,
    "h": 289.7
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#5A3FAC
secondary
#B2C186
accent
#D652B5
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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