#5A3DCE#5A3DCE

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

Color values

HEX#5A3DCE
RGBrgb(90, 61, 206)
HSLhsl(252, 60%, 52%)
HSVhsv(252, 70%, 81%)
CMYKcmyk(56.3%, 70.4%, 0%, 19.2%)
CIE-LABlab(37.78, 50.02, -70.70)
CIE-LCHlch(37.78, 86.60, 305.28°)
OKLaboklab(48.54% 0.0529 -0.2035)
OKLCHoklch(48.54% 0.21 284.6)
XYZxyz(17.0224, 9.9664, 59.4073)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCE #B1CE3D
analogous
#3D69CE #5A3DCE #A33DCE
triadic
#5A3DCE #CE5A3D #3DCE5A
tetradic
#5A3DCE #CE3D69 #B1CE3D #3DCEA3
square
#5A3DCE #CE3D69 #B1CE3D #3DCEA3
split-complementary
#5A3DCE #CEA33D #69CE3D
monochromatic
#2E1D73 #4229A4 #5A3DCE #846EDA #AD9FE7

Accessibility & contrast

On white

7.02
#5A3DCE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5A3DCE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DCE
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DCE#FFFFFF#000000##FFFFFF
##5A3DCE1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#206481
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3dce;
/* rgb */ color: rgb(90, 61, 206);
/* oklch */ color: oklch(48.5% 0.210 284.6);
Tailwind
colors: {
  custom: {
    50: '#9475de',
    500: '#5a3dce',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dce;
$custom-light: #9475de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dce",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 206
  },
  "hsl": {
    "h": 252,
    "s": 59.671,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48544,
    "c": 0.21024,
    "h": 284.6
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#5A3DCE
secondary
#C6D394
accent
#E345C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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