#5A2BD3#5A2BD3

#5A2BD3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.233 H 286.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5A2BD3
RGBrgb(90, 43, 211)
HSLhsl(257, 66%, 50%)
HSVhsv(257, 80%, 83%)
CMYKcmyk(57.3%, 79.6%, 0%, 17.3%)
CIE-LABlab(35.21, 60.07, -77.82)
CIE-LCHlch(35.21, 98.31, 307.66°)
OKLaboklab(46.88% 0.0642 -0.2242)
OKLCHoklch(46.88% 0.233 286)
XYZxyz(16.8346, 8.6036, 62.3890)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BD3 #A4D32B
analogous
#2B50D3 #5A2BD3 #AE2BD3
triadic
#5A2BD3 #D35A2B #2BD35A
tetradic
#5A2BD3 #D32B50 #A4D32B #2BD3AE
square
#5A2BD3 #D32B50 #A4D32B #2BD3AE
split-complementary
#5A2BD3 #D3AE2B #50D32B
monochromatic
#2F166D #4421A0 #5A2BD3 #815DDE #A990E8

Accessibility & contrast

On white

7.72
#5A2BD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A2BD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BD3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BD3#FFFFFF#000000##FFFFFF
##5A2BD31.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D8
Deuteranopia (green-blind)
#004ED0
Tritanopia (blue-blind)
#1A5D80
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a2bd3;
/* rgb */ color: rgb(90, 43, 211);
/* oklch */ color: oklch(46.9% 0.233 286.0);
Tailwind
colors: {
  custom: {
    50: '#966be2',
    500: '#5a2bd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bd3;
$custom-light: #966be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bd3",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 211
  },
  "hsl": {
    "h": 256.786,
    "s": 66.142,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46878,
    "c": 0.23318,
    "h": 286
  },
  "luminance": 0.08605
}

Semantic roles & 50–950 ramp

primary
#5A2BD3
secondary
#BED387
accent
#E93FB9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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