#5A2DD4#5A2DD4

#5A2DD4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.233 H 285.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5A2DD4
RGBrgb(90, 45, 212)
HSLhsl(256, 66%, 50%)
HSVhsv(256, 79%, 83%)
CMYKcmyk(57.5%, 78.8%, 0%, 16.9%)
CIE-LABlab(35.60, 59.48, -77.76)
CIE-LCHlch(35.60, 97.90, 307.42°)
OKLaboklab(47.18% 0.0627 -0.224)
OKLCHoklch(47.18% 0.233 285.6)
XYZxyz(17.0349, 8.8029, 63.0761)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DD4 #A7D42D
analogous
#2D53D4 #5A2DD4 #AE2DD4
triadic
#5A2DD4 #D45A2D #2DD45A
tetradic
#5A2DD4 #D42D53 #A7D42D #2DD4AE
square
#5A2DD4 #D42D53 #A7D42D #2DD4AE
split-complementary
#5A2DD4 #D4AE2D #53D42D
monochromatic
#2F1770 #4421A3 #5A2DD4 #8260DE #AA93E9

Accessibility & contrast

On white

7.61
#5A2DD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A2DD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DD4
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DD4#FFFFFF#000000##FFFFFF
##5A2DD41.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D9
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#175F81
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a2dd4;
/* rgb */ color: rgb(90, 45, 212);
/* oklch */ color: oklch(47.2% 0.233 285.6);
Tailwind
colors: {
  custom: {
    50: '#966ce3',
    500: '#5a2dd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dd4;
$custom-light: #966ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dd4",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 212
  },
  "hsl": {
    "h": 256.168,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47179,
    "c": 0.2326,
    "h": 285.6
  },
  "luminance": 0.08804
}

Semantic roles & 50–950 ramp

primary
#5A2DD4
secondary
#C0D489
accent
#E93FBB
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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