#5A3CC3#5A3CC3

#5A3CC3 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.198 H 286.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5A3CC3
RGBrgb(90, 60, 195)
HSLhsl(253, 53%, 50%)
HSVhsv(253, 69%, 76%)
CMYKcmyk(53.8%, 69.2%, 0%, 23.5%)
CIE-LABlab(36.64, 47.33, -66.17)
CIE-LCHlch(36.64, 81.35, 305.57°)
OKLaboklab(47.44% 0.0557 -0.1902)
OKLCHoklch(47.44% 0.198 286.3)
XYZxyz(15.6797, 9.3447, 52.5967)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CC3 #A5C33C
analogous
#3C62C3 #5A3CC3 #9D3CC3
triadic
#5A3CC3 #C35A3C #3CC35A
tetradic
#5A3CC3 #C33C62 #A5C33C #3CC39D
square
#5A3CC3 #C33C62 #A5C33C #3CC39D
split-complementary
#5A3CC3 #C39D3C #62C33C
monochromatic
#2F1F65 #442E94 #5A3CC3 #826BD1 #A99AE0

Accessibility & contrast

On white

7.32
#5A3CC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5A3CC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CC3
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CC3#FFFFFF#000000##FFFFFF
##5A3CC31.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3cc3;
/* rgb */ color: rgb(90, 60, 195);
/* oklch */ color: oklch(47.4% 0.198 286.3);
Tailwind
colors: {
  custom: {
    50: '#9374d6',
    500: '#5a3cc3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cc3;
$custom-light: #9374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cc3",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 195
  },
  "hsl": {
    "h": 253.333,
    "s": 52.941,
    "l": 50
  },
  "oklch": {
    "l": 0.47438,
    "c": 0.19819,
    "h": 286.3
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#5A3CC3
secondary
#BECC8F
accent
#DC4BBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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