#5A3FCD#5A3FCD

#5A3FCD is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.207 H 284.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCD
RGBrgb(90, 63, 205)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 69%, 80%)
CMYKcmyk(56.1%, 69.3%, 0%, 19.6%)
CIE-LABlab(38.08, 48.65, -69.62)
CIE-LCHlch(38.08, 84.94, 304.94°)
OKLaboklab(48.73% 0.0514 -0.2003)
OKLCHoklch(48.73% 0.207 284.4)
XYZxyz(17.0100, 10.1354, 58.8058)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCD #B2CD3F
analogous
#3F6BCD #5A3FCD #A13FCD
triadic
#5A3FCD #CD5A3F #3FCD5A
tetradic
#5A3FCD #CD3F6B #B2CD3F #3FCDA1
square
#5A3FCD #CD3F6B #B2CD3F #3FCDA1
split-complementary
#5A3FCD #CDA13F #6BCD3F
monochromatic
#2E1E74 #422BA4 #5A3FCD #8470DA #ADA0E6

Accessibility & contrast

On white

6.94
#5A3FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5A3FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCD
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCD#FFFFFF#000000##FFFFFF
##5A3FCD1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#216481
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3fcd;
/* rgb */ color: rgb(90, 63, 205);
/* oklch */ color: oklch(48.7% 0.207 284.4);
Tailwind
colors: {
  custom: {
    50: '#9476dd',
    500: '#5a3fcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fcd;
$custom-light: #9476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fcd",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 205
  },
  "hsl": {
    "h": 251.408,
    "s": 58.678,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48734,
    "c": 0.20683,
    "h": 284.4
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#5A3FCD
secondary
#C7D395
accent
#E246C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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