#5A3FC4#5A3FC4

#5A3FC4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.196 H 285.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5A3FC4
RGBrgb(90, 63, 196)
HSLhsl(252, 53%, 51%)
HSVhsv(252, 68%, 77%)
CMYKcmyk(54.1%, 67.9%, 0%, 23.1%)
CIE-LABlab(37.32, 45.98, -65.64)
CIE-LCHlch(37.32, 80.14, 305.01°)
OKLaboklab(47.95% 0.0529 -0.1886)
OKLCHoklch(47.95% 0.196 285.7)
XYZxyz(15.9548, 9.7133, 53.2480)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FC4 #A9C43F
analogous
#3F67C4 #5A3FC4 #9C3FC4
triadic
#5A3FC4 #C45A3F #3FC45A
tetradic
#5A3FC4 #C43F67 #A9C43F #3FC49C
square
#5A3FC4 #C43F67 #A9C43F #3FC49C
split-complementary
#5A3FC4 #C49C3F #67C43F
monochromatic
#2F2068 #442E97 #5A3FC4 #826ED2 #AA9DE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A3FC4#FFFFFF#000000##FFFFFF
##5A3FC41.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)
#005BC8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#2D617C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3fc4;
/* rgb */ color: rgb(90, 63, 196);
/* oklch */ color: oklch(48.0% 0.196 285.7);
Tailwind
colors: {
  custom: {
    50: '#9376d7',
    500: '#5a3fc4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fc4;
$custom-light: #9376d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fc4",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 252.18,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47953,
    "c": 0.19591,
    "h": 285.7
  },
  "luminance": 0.09714
}

Semantic roles & 50–950 ramp

primary
#5A3FC4
secondary
#C1CD92
accent
#DC4BBF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A3FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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