#5A3FB3#5A3FB3

#5A3FB3 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.175 H 288.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5A3FB3
RGBrgb(90, 63, 179)
HSLhsl(254, 48%, 47%)
HSVhsv(254, 65%, 70%)
CMYKcmyk(49.7%, 64.8%, 0%, 29.8%)
CIE-LABlab(35.95, 40.94, -57.88)
CIE-LCHlch(35.95, 70.89, 305.27°)
OKLaboklab(46.54% 0.0551 -0.1658)
OKLCHoklch(46.54% 0.175 288.4)
XYZxyz(14.1283, 8.9827, 43.6285)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FB3 #98B33F
analogous
#3F5EB3 #5A3FB3 #943FB3
triadic
#5A3FB3 #B35A3F #3FB35A
tetradic
#5A3FB3 #B33F5E #98B33F #3FB394
square
#5A3FB3 #B33F5E #98B33F #3FB394
split-complementary
#5A3FB3 #B3943F #5EB33F
monochromatic
#2C1F58 #432F86 #5A3FB3 #7D66C9 #A493D9

Accessibility & contrast

On white

7.51
#5A3FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3FB3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FB3#FFFFFF#000000##FFFFFF
##5A3FB31.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#3B5B73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3fb3;
/* rgb */ color: rgb(90, 63, 179);
/* oklch */ color: oklch(46.5% 0.175 288.4);
Tailwind
colors: {
  custom: {
    50: '#9076cb',
    500: '#5a3fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fb3;
$custom-light: #9076cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fb3",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 253.966,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46537,
    "c": 0.17476,
    "h": 288.4
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#5A3FB3
secondary
#B7C489
accent
#D850B8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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