#5A3FDD#5A3FDD

#5A3FDD is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.226 H 282.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A3FDD
RGBrgb(90, 63, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 71%, 87%)
CMYKcmyk(59.3%, 71.5%, 0%, 13.3%)
CIE-LABlab(39.49, 53.37, -76.53)
CIE-LCHlch(39.49, 93.30, 304.89°)
OKLaboklab(50.17% 0.0484 -0.2205)
OKLCHoklch(50.17% 0.226 282.4)
XYZxyz(19.0410, 10.9478, 69.5024)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FDD #C2DD3F
analogous
#3F73DD #5A3FDD #A93FDD
triadic
#5A3FDD #DD5A3F #3FDD5A
tetradic
#5A3FDD #DD3F73 #C2DD3F #3FDDA9
square
#5A3FDD #DD3F73 #C2DD3F #3FDDA9
split-complementary
#5A3FDD #DDA93F #73DD3F
monochromatic
#2C1889 #3C22BD #5A3FDD #8773E6 #B3A7EF

Accessibility & contrast

On white

6.58
#5A3FDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A3FDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FDD
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FDD#FFFFFF#000000##FFFFFF
##5A3FDD1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E2
Deuteranopia (green-blind)
#0057DA
Tritanopia (blue-blind)
#006A8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a3fdd;
/* rgb */ color: rgb(90, 63, 221);
/* oklch */ color: oklch(50.2% 0.226 282.4);
Tailwind
colors: {
  custom: {
    50: '#9777e9',
    500: '#5a3fdd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fdd;
$custom-light: #9777e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fdd",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 221
  },
  "hsl": {
    "h": 250.253,
    "s": 69.912,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50167,
    "c": 0.2258,
    "h": 282.4
  },
  "luminance": 0.10949
}

Semantic roles & 50–950 ramp

primary
#5A3FDD
secondary
#D2DD9B
accent
#ED3BCE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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