#5A3FB2#5A3FB2

#5A3FB2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.173 H 288.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5A3FB2
RGBrgb(90, 63, 178)
HSLhsl(254, 48%, 47%)
HSVhsv(254, 65%, 70%)
CMYKcmyk(49.4%, 64.6%, 0%, 30.2%)
CIE-LABlab(35.87, 40.64, -57.41)
CIE-LCHlch(35.87, 70.34, 305.29°)
OKLaboklab(46.46% 0.0552 -0.1645)
OKLCHoklch(46.46% 0.174 288.6)
XYZxyz(14.0275, 8.9424, 43.0978)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FB2 #97B23F
analogous
#3F5EB2 #5A3FB2 #943FB2
triadic
#5A3FB2 #B25A3F #3FB25A
tetradic
#5A3FB2 #B23F5E #97B23F #3FB294
square
#5A3FB2 #B23F5E #97B23F #3FB294
split-complementary
#5A3FB2 #B2943F #5EB23F
monochromatic
#2C1F58 #432F85 #5A3FB2 #7D66C9 #A393D9

Accessibility & contrast

On white

7.53
#5A3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A3FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FB2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FB2#FFFFFF#000000##FFFFFF
##5A3FB21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#3C5B73
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3fb2;
/* rgb */ color: rgb(90, 63, 178);
/* oklch */ color: oklch(46.5% 0.173 288.6);
Tailwind
colors: {
  custom: {
    50: '#9076ca',
    500: '#5a3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fb2;
$custom-light: #9076ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fb2",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 254.087,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46456,
    "c": 0.1735,
    "h": 288.6
  },
  "luminance": 0.08943
}

Semantic roles & 50–950 ramp

primary
#5A3FB2
secondary
#B6C489
accent
#D750B8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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