#5A3CB0#5A3CB0

#5A3CB0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.175 H 289.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5A3CB0
RGBrgb(90, 60, 176)
HSLhsl(256, 49%, 46%)
HSVhsv(256, 66%, 69%)
CMYKcmyk(48.9%, 65.9%, 0%, 31%)
CIE-LABlab(35.08, 41.76, -57.51)
CIE-LCHlch(35.08, 71.07, 305.99°)
OKLaboklab(45.84% 0.0586 -0.1648)
OKLCHoklch(45.84% 0.175 289.6)
XYZxyz(13.6665, 8.5394, 41.9941)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CB0 #92B03C
analogous
#3C58B0 #5A3CB0 #943CB0
triadic
#5A3CB0 #B05A3C #3CB05A
tetradic
#5A3CB0 #B03C58 #92B03C #3CB094
square
#5A3CB0 #B03C58 #92B03C #3CB094
split-complementary
#5A3CB0 #B0943C #58B03C
monochromatic
#2B1D55 #432C82 #5A3CB0 #7B60C9 #A18ED8

Accessibility & contrast

On white

7.75
#5A3CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A3CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CB0
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CB0#FFFFFF#000000##FFFFFF
##5A3CB01.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#3D5871
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3cb0;
/* rgb */ color: rgb(90, 60, 176);
/* oklch */ color: oklch(45.8% 0.175 289.6);
Tailwind
colors: {
  custom: {
    50: '#9074c8',
    500: '#5a3cb0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cb0;
$custom-light: #9074c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cb0",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 176
  },
  "hsl": {
    "h": 255.517,
    "s": 49.153,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.17486,
    "h": 289.6
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#5A3CB0
secondary
#B3C385
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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