#5A3BC4#5A3BC4

#5A3BC4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.4% C 0.201 H 286.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC4
RGBrgb(90, 59, 196)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 77%)
CMYKcmyk(54.1%, 69.9%, 0%, 23.1%)
CIE-LABlab(36.53, 48.16, -66.93)
CIE-LCHlch(36.53, 82.46, 305.74°)
OKLaboklab(47.39% 0.0564 -0.1924)
OKLCHoklch(47.39% 0.201 286.3)
XYZxyz(15.7412, 9.2863, 53.1768)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC4 #A5C43B
analogous
#3B60C4 #5A3BC4 #9F3BC4
triadic
#5A3BC4 #C45A3B #3BC45A
tetradic
#5A3BC4 #C43B60 #A5C43B #3BC49F
square
#5A3BC4 #C43B60 #A5C43B #3BC49F
split-complementary
#5A3BC4 #C49F3B #60C43B
monochromatic
#2F1F66 #442D95 #5A3BC4 #826AD2 #A999E0

Accessibility & contrast

On white

7.35
#5A3BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A3BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC4
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC4#FFFFFF#000000##FFFFFF
##5A3BC41.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#2D5F7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3bc4;
/* rgb */ color: rgb(90, 59, 196);
/* oklch */ color: oklch(47.4% 0.201 286.3);
Tailwind
colors: {
  custom: {
    50: '#9374d7',
    500: '#5a3bc4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc4;
$custom-light: #9374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc4",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 253.577,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.20053,
    "h": 286.3
  },
  "luminance": 0.09287
}

Semantic roles & 50–950 ramp

primary
#5A3BC4
secondary
#BECC8F
accent
#DD4BBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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