#5A2DD3#5A2DD3

#5A2DD3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.232 H 285.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5A2DD3
RGBrgb(90, 45, 211)
HSLhsl(256, 65%, 50%)
HSVhsv(256, 79%, 83%)
CMYKcmyk(57.3%, 78.7%, 0%, 17.3%)
CIE-LABlab(35.50, 59.21, -77.34)
CIE-LCHlch(35.50, 97.40, 307.44°)
OKLaboklab(47.08% 0.063 -0.2228)
OKLCHoklch(47.08% 0.232 285.8)
XYZxyz(16.9091, 8.7526, 62.4138)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DD3 #A6D32D
analogous
#2D53D3 #5A2DD3 #AD2DD3
triadic
#5A2DD3 #D35A2D #2DD35A
tetradic
#5A2DD3 #D32D53 #A6D32D #2DD3AD
square
#5A2DD3 #D32D53 #A6D32D #2DD3AD
split-complementary
#5A2DD3 #D3AD2D #53D32D
monochromatic
#2F176E #4422A1 #5A2DD3 #8260DE #AA92E8

Accessibility & contrast

On white

7.63
#5A2DD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A2DD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DD3
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DD3#FFFFFF#000000##FFFFFF
##5A2DD31.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004ED0
Tritanopia (blue-blind)
#195E80
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a2dd3;
/* rgb */ color: rgb(90, 45, 211);
/* oklch */ color: oklch(47.1% 0.232 285.8);
Tailwind
colors: {
  custom: {
    50: '#966ce2',
    500: '#5a2dd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dd3;
$custom-light: #966ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dd3",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 211
  },
  "hsl": {
    "h": 256.265,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47082,
    "c": 0.23151,
    "h": 285.8
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#5A2DD3
secondary
#BFD389
accent
#E83FBB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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