#5A3DBF#5A3DBF

#5A3DBF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.192 H 286.8°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A3DBF
RGBrgb(90, 61, 191)
HSLhsl(253, 52%, 49%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(52.9%, 68.1%, 0%, 25.1%)
CIE-LABlab(36.50, 45.61, -64.05)
CIE-LCHlch(36.50, 78.63, 305.45°)
OKLaboklab(47.24% 0.0555 -0.184)
OKLCHoklch(47.24% 0.192 286.8)
XYZxyz(15.2864, 9.2720, 50.2643)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DBF #A2BF3D
analogous
#3D61BF #5A3DBF #9B3DBF
triadic
#5A3DBF #BF5A3D #3DBF5A
tetradic
#5A3DBF #BF3D61 #A2BF3D #3DBF9B
square
#5A3DBF #BF3D61 #A2BF3D #3DBF9B
split-complementary
#5A3DBF #BF9B3D #61BF3D
monochromatic
#2E1F62 #442E91 #5A3DBF #806ACF #A898DE

Accessibility & contrast

On white

7.36
#5A3DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A3DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DBF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DBF#FFFFFF#000000##FFFFFF
##5A3DBF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#325E79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3dbf;
/* rgb */ color: rgb(90, 61, 191);
/* oklch */ color: oklch(47.2% 0.192 286.8);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5a3dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dbf;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dbf",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 191
  },
  "hsl": {
    "h": 253.385,
    "s": 51.587,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.19217,
    "h": 286.8
  },
  "luminance": 0.09273
}

Semantic roles & 50–950 ramp

primary
#5A3DBF
secondary
#BDCA8E
accent
#DB4DBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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