#5A2DB2#5A2DB2

#5A2DB2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.195 H 291.8°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5A2DB2
RGBrgb(90, 45, 178)
HSLhsl(260, 60%, 44%)
HSVhsv(260, 75%, 70%)
CMYKcmyk(49.4%, 74.7%, 0%, 30.2%)
CIE-LABlab(32.40, 50.23, -63.08)
CIE-LCHlch(32.40, 80.63, 308.53°)
OKLaboklab(43.97% 0.0722 -0.181)
OKLCHoklch(43.97% 0.195 291.8)
XYZxyz(13.1884, 7.2643, 42.8181)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DB2 #85B22D
analogous
#2D42B2 #5A2DB2 #9C2DB2
triadic
#5A2DB2 #B25A2D #2DB25A
tetradic
#5A2DB2 #B22D42 #85B22D #2DB29C
square
#5A2DB2 #B22D42 #85B22D #2DB29C
split-complementary
#5A2DB2 #B29C2D #42B22D
monochromatic
#291450 #412181 #5A2DB2 #784BD1 #9D7CDE

Accessibility & contrast

On white

8.56
#5A2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DB2
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DB2#FFFFFF#000000##FFFFFF
##5A2DB21.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#3D516D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2db2;
/* rgb */ color: rgb(90, 45, 178);
/* oklch */ color: oklch(44.0% 0.195 291.8);
Tailwind
colors: {
  custom: {
    50: '#916bca',
    500: '#5a2db2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2db2;
$custom-light: #916bca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2db2",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 260.301,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43975,
    "c": 0.19493,
    "h": 291.8
  },
  "luminance": 0.07265
}

Semantic roles & 50–950 ramp

primary
#5A2DB2
secondary
#ABC675
accent
#E345AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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