#5A3CBD#5A3CBD

#5A3CBD is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.191 H 287.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A3CBD
RGBrgb(90, 60, 189)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 74%)
CMYKcmyk(52.4%, 68.3%, 0%, 25.9%)
CIE-LABlab(36.14, 45.57, -63.48)
CIE-LCHlch(36.14, 78.14, 305.67°)
OKLaboklab(46.92% 0.0567 -0.1823)
OKLCHoklch(46.92% 0.191 287.3)
XYZxyz(15.0149, 9.0788, 49.0955)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CBD #9FBD3C
analogous
#3C5FBD #5A3CBD #9B3CBD
triadic
#5A3CBD #BD5A3C #3CBD5A
tetradic
#5A3CBD #BD3C5F #9FBD3C #3CBD9B
square
#5A3CBD #BD3C5F #9FBD3C #3CBD9B
split-complementary
#5A3CBD #BD9B3C #5FBD3C
monochromatic
#2E1F60 #442D8F #5A3CBD #7F67CF #A696DE

Accessibility & contrast

On white

7.46
#5A3CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A3CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CBD
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CBD#FFFFFF#000000##FFFFFF
##5A3CBD1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#345D78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3cbd;
/* rgb */ color: rgb(90, 60, 189);
/* oklch */ color: oklch(46.9% 0.191 287.3);
Tailwind
colors: {
  custom: {
    50: '#9274d2',
    500: '#5a3cbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cbd;
$custom-light: #9274d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cbd",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 253.953,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46921,
    "c": 0.19091,
    "h": 287.3
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

primary
#5A3CBD
secondary
#BBC98C
accent
#DB4DBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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