#5A3FCE#5A3FCE

#5A3FCE is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.208 H 284.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCE
RGBrgb(90, 63, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 69%, 81%)
CMYKcmyk(56.3%, 69.4%, 0%, 19.2%)
CIE-LABlab(38.17, 48.94, -70.06)
CIE-LCHlch(38.17, 85.46, 304.94°)
OKLaboklab(48.82% 0.0513 -0.2016)
OKLCHoklch(48.82% 0.208 284.3)
XYZxyz(17.1311, 10.1839, 59.4435)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCE #B3CE3F
analogous
#3F6BCE #5A3FCE #A23FCE
triadic
#5A3FCE #CE5A3F #3FCE5A
tetradic
#5A3FCE #CE3F6B #B3CE3F #3FCEA2
square
#5A3FCE #CE3F6B #B3CE3F #3FCEA2
split-complementary
#5A3FCE #CEA23F #6BCE3F
monochromatic
#2E1E75 #422AA6 #5A3FCE #8470DA #AEA1E7

Accessibility & contrast

On white

6.91
#5A3FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5A3FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCE#FFFFFF#000000##FFFFFF
##5A3FCE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#206582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3fce;
/* rgb */ color: rgb(90, 63, 206);
/* oklch */ color: oklch(48.8% 0.208 284.3);
Tailwind
colors: {
  custom: {
    50: '#9476de',
    500: '#5a3fce',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fce;
$custom-light: #9476de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fce",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 206
  },
  "hsl": {
    "h": 251.329,
    "s": 59.336,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.20803,
    "h": 284.3
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#5A3FCE
secondary
#C8D395
accent
#E345C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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