#5A3BC9#5A3BC9

#5A3BC9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.8% C 0.206 H 285.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC9
RGBrgb(90, 59, 201)
HSLhsl(253, 57%, 51%)
HSVhsv(253, 71%, 79%)
CMYKcmyk(55.2%, 70.6%, 0%, 21.2%)
CIE-LABlab(36.96, 49.62, -69.14)
CIE-LCHlch(36.96, 85.10, 305.67°)
OKLaboklab(47.83% 0.0555 -0.1989)
OKLCHoklch(47.83% 0.206 285.6)
XYZxyz(16.3199, 9.5177, 56.2242)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC9 #AAC93B
analogous
#3B63C9 #5A3BC9 #A13BC9
triadic
#5A3BC9 #C95A3B #3BC95A
tetradic
#5A3BC9 #C93B63 #AAC93B #3BC9A1
square
#5A3BC9 #C93B63 #AAC93B #3BC9A1
split-complementary
#5A3BC9 #C9A13B #63C93B
monochromatic
#2F1E6C #442B9C #5A3BC9 #826BD6 #AB9BE3

Accessibility & contrast

On white

7.23
#5A3BC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A3BC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC9#FFFFFF#000000##FFFFFF
##5A3BC91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#0053C6
Tritanopia (blue-blind)
#27617E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3bc9;
/* rgb */ color: rgb(90, 59, 201);
/* oklch */ color: oklch(47.8% 0.206 285.6);
Tailwind
colors: {
  custom: {
    50: '#9474db',
    500: '#5a3bc9',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc9;
$custom-light: #9474db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc9",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 201
  },
  "hsl": {
    "h": 253.099,
    "s": 56.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47827,
    "c": 0.20649,
    "h": 285.6
  },
  "luminance": 0.09519
}

Semantic roles & 50–950 ramp

primary
#5A3BC9
secondary
#C2CF90
accent
#E048BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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