#5A3BC3#5A3BC3

#5A3BC3 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.199 H 286.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC3
RGBrgb(90, 59, 195)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 76%)
CMYKcmyk(53.8%, 69.7%, 0%, 23.5%)
CIE-LABlab(36.44, 47.87, -66.49)
CIE-LCHlch(36.44, 81.93, 305.75°)
OKLaboklab(47.3% 0.0566 -0.1911)
OKLCHoklch(47.3% 0.199 286.5)
XYZxyz(15.6278, 9.2409, 52.5794)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC3 #A4C33B
analogous
#3B60C3 #5A3BC3 #9E3BC3
triadic
#5A3BC3 #C35A3B #3BC35A
tetradic
#5A3BC3 #C33B60 #A4C33B #3BC39E
square
#5A3BC3 #C33B60 #A4C33B #3BC39E
split-complementary
#5A3BC3 #C39E3B #60C33B
monochromatic
#2F1F65 #442D94 #5A3BC3 #8169D2 #A998E0

Accessibility & contrast

On white

7.37
#5A3BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A3BC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC3
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC3#FFFFFF#000000##FFFFFF
##5A3BC31.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#2E5F7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3bc3;
/* rgb */ color: rgb(90, 59, 195);
/* oklch */ color: oklch(47.3% 0.199 286.5);
Tailwind
colors: {
  custom: {
    50: '#9374d6',
    500: '#5a3bc3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc3;
$custom-light: #9374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc3",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 195
  },
  "hsl": {
    "h": 253.676,
    "s": 53.543,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47298,
    "c": 0.19933,
    "h": 286.5
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#5A3BC3
secondary
#BECC8E
accent
#DD4BBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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