#5A3DC3#5A3DC3

#5A3DC3 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.197 H 286.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5A3DC3
RGBrgb(90, 61, 195)
HSLhsl(253, 53%, 50%)
HSVhsv(253, 69%, 76%)
CMYKcmyk(53.8%, 68.7%, 0%, 23.5%)
CIE-LABlab(36.84, 46.78, -65.84)
CIE-LCHlch(36.84, 80.77, 305.39°)
OKLaboklab(47.58% 0.0549 -0.1892)
OKLCHoklch(47.58% 0.197 286.2)
XYZxyz(15.7326, 9.4504, 52.6143)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DC3 #A6C33D
analogous
#3D63C3 #5A3DC3 #9D3DC3
triadic
#5A3DC3 #C35A3D #3DC35A
tetradic
#5A3DC3 #C33D63 #A6C33D #3DC39D
square
#5A3DC3 #C33D63 #A6C33D #3DC39D
split-complementary
#5A3DC3 #C39D3D #63C33D
monochromatic
#2F2066 #442E95 #5A3DC3 #826CD1 #AA9AE0

Accessibility & contrast

On white

7.27
#5A3DC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A3DC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DC3
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DC3#FFFFFF#000000##FFFFFF
##5A3DC31.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#2E607B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3dc3;
/* rgb */ color: rgb(90, 61, 195);
/* oklch */ color: oklch(47.6% 0.197 286.2);
Tailwind
colors: {
  custom: {
    50: '#9375d6',
    500: '#5a3dc3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dc3;
$custom-light: #9375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dc3",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 195
  },
  "hsl": {
    "h": 252.985,
    "s": 52.756,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47579,
    "c": 0.19703,
    "h": 286.2
  },
  "luminance": 0.09451
}

Semantic roles & 50–950 ramp

primary
#5A3DC3
secondary
#BFCC90
accent
#DC4CBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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