#5A3DCF#5A3DCF

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

Color values

HEX#5A3DCF
RGBrgb(90, 61, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 71%, 81%)
CMYKcmyk(56.5%, 70.5%, 0%, 18.8%)
CIE-LABlab(37.87, 50.31, -71.13)
CIE-LCHlch(37.87, 87.13, 305.27°)
OKLaboklab(48.63% 0.0527 -0.2047)
OKLCHoklch(48.63% 0.211 284.4)
XYZxyz(17.1442, 10.0151, 60.0491)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCF #B2CF3D
analogous
#3D69CF #5A3DCF #A33DCF
triadic
#5A3DCF #CF5A3D #3DCF5A
tetradic
#5A3DCF #CF3D69 #B2CF3D #3DCFA3
square
#5A3DCF #CF3D69 #B2CF3D #3DCFA3
split-complementary
#5A3DCF #CFA33D #69CF3D
monochromatic
#2E1D75 #4229A6 #5A3DCF #846EDB #AD9FE7

Accessibility & contrast

On white

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

On black

3.00
#5A3DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A3DCF#FFFFFF#000000##FFFFFF
##5A3DCF1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#1E6482
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3dcf;
/* rgb */ color: rgb(90, 61, 207);
/* oklch */ color: oklch(48.6% 0.211 284.4);
Tailwind
colors: {
  custom: {
    50: '#9575df',
    500: '#5a3dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dcf;
$custom-light: #9575df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dcf",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 207
  },
  "hsl": {
    "h": 251.918,
    "s": 60.331,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48634,
    "c": 0.21142,
    "h": 284.4
  },
  "luminance": 0.10016
}

Semantic roles & 50–950 ramp

primary
#5A3DCF
secondary
#C7D494
accent
#E344C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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