#5A2DDC#5A2DDC

#5A2DDC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.241 H 284.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5A2DDC
RGBrgb(90, 45, 220)
HSLhsl(255, 71%, 52%)
HSVhsv(255, 80%, 86%)
CMYKcmyk(59.1%, 79.5%, 0%, 13.7%)
CIE-LABlab(36.40, 61.65, -81.05)
CIE-LCHlch(36.40, 101.83, 307.26°)
OKLaboklab(47.97% 0.0602 -0.2336)
OKLCHoklch(47.97% 0.241 284.5)
XYZxyz(18.0691, 9.2166, 68.5231)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DDC #AFDC2D
analogous
#2D57DC #5A2DDC #B22DDC
triadic
#5A2DDC #DC5A2D #2DDC5A
tetradic
#5A2DDC #DC2D57 #AFDC2D #2DDCB2
square
#5A2DDC #DC2D57 #AFDC2D #2DDCB2
split-complementary
#5A2DDC #DCB22D #57DC2D
monochromatic
#2F147A #431DAF #5A2DDC #8361E5 #AC96ED

Accessibility & contrast

On white

7.39
#5A2DDC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A2DDC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DDC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DDC#FFFFFF#000000##FFFFFF
##5A2DDC1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE1
Deuteranopia (green-blind)
#0050D9
Tritanopia (blue-blind)
#006285
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a2ddc;
/* rgb */ color: rgb(90, 45, 220);
/* oklch */ color: oklch(48.0% 0.241 284.5);
Tailwind
colors: {
  custom: {
    50: '#986de8',
    500: '#5a2ddc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ddc;
$custom-light: #986de8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ddc",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 220
  },
  "hsl": {
    "h": 255.429,
    "s": 71.429,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47969,
    "c": 0.24124,
    "h": 284.5
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#5A2DDC
secondary
#C5D98C
accent
#EE3AC0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5A2DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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