#5A3DCC#5A3DCC

#5A3DCC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.208 H 284.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5A3DCC
RGBrgb(90, 61, 204)
HSLhsl(252, 58%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(55.9%, 70.1%, 0%, 20%)
CIE-LABlab(37.61, 49.43, -69.83)
CIE-LCHlch(37.61, 85.55, 305.30°)
OKLaboklab(48.37% 0.0533 -0.2009)
OKLCHoklch(48.37% 0.208 284.8)
XYZxyz(16.7810, 9.8698, 58.1358)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCC #AFCC3D
analogous
#3D68CC #5A3DCC #A23DCC
triadic
#5A3DCC #CC5A3D #3DCC5A
tetradic
#5A3DCC #CC3D68 #AFCC3D #3DCCA2
square
#5A3DCC #CC3D68 #AFCC3D #3DCCA2
split-complementary
#5A3DCC #CCA23D #68CC3D
monochromatic
#2F1E71 #432AA1 #5A3DCC #836DD9 #AC9EE5

Accessibility & contrast

On white

7.06
#5A3DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5A3DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DCC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DCC#FFFFFF#000000##FFFFFF
##5A3DCC1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#236380
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3dcc;
/* rgb */ color: rgb(90, 61, 204);
/* oklch */ color: oklch(48.4% 0.208 284.8);
Tailwind
colors: {
  custom: {
    50: '#9475dd',
    500: '#5a3dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dcc;
$custom-light: #9475dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dcc",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 204
  },
  "hsl": {
    "h": 252.168,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48367,
    "c": 0.20786,
    "h": 284.8
  },
  "luminance": 0.09871
}

Semantic roles & 50–950 ramp

primary
#5A3DCC
secondary
#C5D293
accent
#E246C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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