#5A3FC0#5A3FC0

#5A3FC0 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.191 H 286.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5A3FC0
RGBrgb(90, 63, 192)
HSLhsl(253, 51%, 50%)
HSVhsv(253, 67%, 75%)
CMYKcmyk(53.1%, 67.2%, 0%, 24.7%)
CIE-LABlab(36.99, 44.79, -63.84)
CIE-LCHlch(36.99, 77.98, 305.05°)
OKLaboklab(47.61% 0.0535 -0.1834)
OKLCHoklch(47.61% 0.191 286.3)
XYZxyz(15.5055, 9.5336, 50.8821)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FC0 #A5C03F
analogous
#3F65C0 #5A3FC0 #9A3FC0
triadic
#5A3FC0 #C05A3F #3FC05A
tetradic
#5A3FC0 #C03F65 #A5C03F #3FC09A
square
#5A3FC0 #C03F65 #A5C03F #3FC09A
split-complementary
#5A3FC0 #C09A3F #65C03F
monochromatic
#2F2164 #443092 #5A3FC0 #826DCF #A99BDE

Accessibility & contrast

On white

7.22
#5A3FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A3FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FC0
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FC0#FFFFFF#000000##FFFFFF
##5A3FC01.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#31607A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3fc0;
/* rgb */ color: rgb(90, 63, 192);
/* oklch */ color: oklch(47.6% 0.191 286.3);
Tailwind
colors: {
  custom: {
    50: '#9276d4',
    500: '#5a3fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fc0;
$custom-light: #9276d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fc0",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 192
  },
  "hsl": {
    "h": 252.558,
    "s": 50.588,
    "l": 50
  },
  "oklch": {
    "l": 0.47613,
    "c": 0.191,
    "h": 286.3
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#5A3FC0
secondary
#BECA91
accent
#DA4EBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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