#5A3CBC#5A3CBC

#5A3CBC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.190 H 287.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5A3CBC
RGBrgb(90, 60, 188)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 74%)
CMYKcmyk(52.1%, 68.1%, 0%, 26.3%)
CIE-LABlab(36.05, 45.28, -63.02)
CIE-LCHlch(36.05, 77.60, 305.69°)
OKLaboklab(46.84% 0.0569 -0.181)
OKLCHoklch(46.84% 0.19 287.5)
XYZxyz(14.9067, 9.0355, 48.5258)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CBC #9EBC3C
analogous
#3C5EBC #5A3CBC #9A3CBC
triadic
#5A3CBC #BC5A3C #3CBC5A
tetradic
#5A3CBC #BC3C5E #9EBC3C #3CBC9A
square
#5A3CBC #BC3C5E #9EBC3C #3CBC9A
split-complementary
#5A3CBC #BC9A3C #5EBC3C
monochromatic
#2E1E5F #442D8E #5A3CBC #7F67CE #A695DD

Accessibility & contrast

On white

7.48
#5A3CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5A3CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CBC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CBC#FFFFFF#000000##FFFFFF
##5A3CBC1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#355D77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3cbc;
/* rgb */ color: rgb(90, 60, 188);
/* oklch */ color: oklch(46.8% 0.190 287.5);
Tailwind
colors: {
  custom: {
    50: '#9274d1',
    500: '#5a3cbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cbc;
$custom-light: #9274d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cbc",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 188
  },
  "hsl": {
    "h": 254.063,
    "s": 51.613,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46835,
    "c": 0.18969,
    "h": 287.5
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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