#5A3DCD#5A3DCD

#5A3DCD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.209 H 284.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5A3DCD
RGBrgb(90, 61, 205)
HSLhsl(252, 59%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(56.1%, 70.2%, 0%, 19.6%)
CIE-LABlab(37.69, 49.72, -70.26)
CIE-LCHlch(37.69, 86.08, 305.29°)
OKLaboklab(48.46% 0.0531 -0.2022)
OKLCHoklch(48.46% 0.209 284.7)
XYZxyz(16.9013, 9.9179, 58.7695)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCD #B0CD3D
analogous
#3D68CD #5A3DCD #A23DCD
triadic
#5A3DCD #CD5A3D #3DCD5A
tetradic
#5A3DCD #CD3D68 #B0CD3D #3DCDA2
square
#5A3DCD #CD3D68 #B0CD3D #3DCDA2
split-complementary
#5A3DCD #CDA23D #68CD3D
monochromatic
#2E1D72 #422AA3 #5A3DCD #836EDA #AD9EE6

Accessibility & contrast

On white

7.04
#5A3DCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5A3DCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DCD
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DCD#FFFFFF#000000##FFFFFF
##5A3DCD1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3dcd;
/* rgb */ color: rgb(90, 61, 205);
/* oklch */ color: oklch(48.5% 0.209 284.7);
Tailwind
colors: {
  custom: {
    50: '#9475dd',
    500: '#5a3dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dcd;
$custom-light: #9475dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dcd",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 205
  },
  "hsl": {
    "h": 252.083,
    "s": 59.016,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.20905,
    "h": 284.7
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#5A3DCD
secondary
#C6D293
accent
#E246C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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