#5A3ECD#5A3ECD

#5A3ECD is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.208 H 284.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5A3ECD
RGBrgb(90, 62, 205)
HSLhsl(252, 59%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(56.1%, 69.8%, 0%, 19.6%)
CIE-LABlab(37.89, 49.19, -69.95)
CIE-LCHlch(37.89, 85.51, 305.12°)
OKLaboklab(48.59% 0.0523 -0.2013)
OKLCHoklch(48.59% 0.208 284.6)
XYZxyz(16.9552, 10.0257, 58.7875)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ECD #B1CD3E
analogous
#3E6ACD #5A3ECD #A13ECD
triadic
#5A3ECD #CD5A3E #3ECD5A
tetradic
#5A3ECD #CD3E6A #B1CD3E #3ECDA1
square
#5A3ECD #CD3E6A #B1CD3E #3ECDA1
split-complementary
#5A3ECD #CDA13E #6ACD3E
monochromatic
#2E1E73 #422AA3 #5A3ECD #846FDA #AD9FE6

Accessibility & contrast

On white

6.99
#5A3ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A3ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ECD
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ECD#FFFFFF#000000##FFFFFF
##5A3ECD1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#216481
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3ecd;
/* rgb */ color: rgb(90, 62, 205);
/* oklch */ color: oklch(48.6% 0.208 284.6);
Tailwind
colors: {
  custom: {
    50: '#9476dd',
    500: '#5a3ecd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ecd;
$custom-light: #9476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ecd",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 205
  },
  "hsl": {
    "h": 251.748,
    "s": 58.848,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.20794,
    "h": 284.6
  },
  "luminance": 0.10027
}

Semantic roles & 50–950 ramp

primary
#5A3ECD
secondary
#C6D394
accent
#E246C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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