#5A3DCB#5A3DCB

#5A3DCB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.207 H 285.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5A3DCB
RGBrgb(90, 61, 203)
HSLhsl(252, 58%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(55.7%, 70%, 0%, 20.4%)
CIE-LABlab(37.52, 49.14, -69.39)
CIE-LCHlch(37.52, 85.02, 305.30°)
OKLaboklab(48.28% 0.0535 -0.1996)
OKLCHoklch(48.28% 0.207 285)
XYZxyz(16.6614, 9.8220, 57.5062)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCB #AECB3D
analogous
#3D67CB #5A3DCB #A13DCB
triadic
#5A3DCB #CB5A3D #3DCB5A
tetradic
#5A3DCB #CB3D67 #AECB3D #3DCBA1
square
#5A3DCB #CB3D67 #AECB3D #3DCBA1
split-complementary
#5A3DCB #CBA13D #67CB3D
monochromatic
#2F1E70 #432BA0 #5A3DCB #836DD8 #AC9EE5

Accessibility & contrast

On white

7.08
#5A3DCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5A3DCB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DCB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DCB#FFFFFF#000000##FFFFFF
##5A3DCB1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#246380
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3dcb;
/* rgb */ color: rgb(90, 61, 203);
/* oklch */ color: oklch(48.3% 0.207 285.0);
Tailwind
colors: {
  custom: {
    50: '#9475dc',
    500: '#5a3dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dcb;
$custom-light: #9475dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dcb",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 203
  },
  "hsl": {
    "h": 252.254,
    "s": 57.724,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48278,
    "c": 0.20666,
    "h": 285
  },
  "luminance": 0.09823
}

Semantic roles & 50–950 ramp

primary
#5A3DCB
secondary
#C4D193
accent
#E147C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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