#5A3CBB#5A3CBB

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

Color values

HEX#5A3CBB
RGBrgb(90, 60, 187)
HSLhsl(254, 51%, 48%)
HSVhsv(254, 68%, 73%)
CMYKcmyk(51.9%, 67.9%, 0%, 26.7%)
CIE-LABlab(35.97, 44.98, -62.57)
CIE-LCHlch(35.97, 77.06, 305.71°)
OKLaboklab(46.75% 0.057 -0.1796)
OKLCHoklch(46.75% 0.188 287.6)
XYZxyz(14.7993, 8.9925, 47.9600)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CBB #9DBB3C
analogous
#3C5DBB #5A3CBB #993CBB
triadic
#5A3CBB #BB5A3C #3CBB5A
tetradic
#5A3CBB #BB3C5D #9DBB3C #3CBB99
square
#5A3CBB #BB3C5D #9DBB3C #3CBB99
split-complementary
#5A3CBB #BB993C #5DBB3C
monochromatic
#2D1E5E #442D8D #5A3CBB #7F66CE #A695DD

Accessibility & contrast

On white

7.50
#5A3CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5A3CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CBB
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CBB#FFFFFF#000000##FFFFFF
##5A3CBB1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#355C76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3cbb;
/* rgb */ color: rgb(90, 60, 187);
/* oklch */ color: oklch(46.8% 0.188 287.6);
Tailwind
colors: {
  custom: {
    50: '#9274d0',
    500: '#5a3cbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cbb;
$custom-light: #9274d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cbb",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 254.173,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4675,
    "c": 0.18847,
    "h": 287.6
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#5A3CBB
secondary
#BAC88B
accent
#DB4DB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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