#5A3FBD#5A3FBD

#5A3FBD is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.187 H 286.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5A3FBD
RGBrgb(90, 63, 189)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 67%, 74%)
CMYKcmyk(52.4%, 66.7%, 0%, 25.9%)
CIE-LABlab(36.75, 43.90, -62.48)
CIE-LCHlch(36.75, 76.36, 305.09°)
OKLaboklab(47.36% 0.0539 -0.1794)
OKLCHoklch(47.36% 0.187 286.7)
XYZxyz(15.1765, 9.4020, 49.1493)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FBD #A2BD3F
analogous
#3F63BD #5A3FBD #993FBD
triadic
#5A3FBD #BD5A3F #3FBD5A
tetradic
#5A3FBD #BD3F63 #A2BD3F #3FBD99
square
#5A3FBD #BD3F63 #A2BD3F #3FBD99
split-complementary
#5A3FBD #BD993F #63BD3F
monochromatic
#2E2061 #44308F #5A3FBD #806BCE #A899DD

Accessibility & contrast

On white

7.29
#5A3FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A3FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FBD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FBD#FFFFFF#000000##FFFFFF
##5A3FBD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#335F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3fbd;
/* rgb */ color: rgb(90, 63, 189);
/* oklch */ color: oklch(47.4% 0.187 286.7);
Tailwind
colors: {
  custom: {
    50: '#9276d2',
    500: '#5a3fbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fbd;
$custom-light: #9276d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fbd",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 189
  },
  "hsl": {
    "h": 252.857,
    "s": 50,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4736,
    "c": 0.18729,
    "h": 286.7
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#5A3FBD
secondary
#BDC98F
accent
#DA4EBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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