#5A2DA5#5A2DA5

#5A2DA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.180 H 294.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2DA5
RGBrgb(90, 45, 165)
HSLhsl(263, 57%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(45.5%, 72.7%, 0%, 35.3%)
CIE-LABlab(31.27, 46.70, -57.14)
CIE-LCHlch(31.27, 73.79, 309.26°)
OKLaboklab(42.83% 0.0753 -0.1636)
OKLCHoklch(42.83% 0.18 294.7)
XYZxyz(11.9445, 6.7667, 36.2668)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DA5 #78A52D
analogous
#2D3CA5 #5A2DA5 #962DA5
triadic
#5A2DA5 #A55A2D #2DA55A
tetradic
#5A2DA5 #A52D3C #78A52D #2DA596
square
#5A2DA5 #A52D3C #78A52D #2DA596
split-complementary
#5A2DA5 #A5962D #3CA52D
monochromatic
#261345 #402075 #5A2DA5 #7743CC #9A73D9

Accessibility & contrast

On white

8.92
#5A2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DA5
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DA5#FFFFFF#000000##FFFFFF
##5A2DA51.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#454C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2da5;
/* rgb */ color: rgb(90, 45, 165);
/* oklch */ color: oklch(42.8% 0.180 294.7);
Tailwind
colors: {
  custom: {
    50: '#906ac1',
    500: '#5a2da5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2da5;
$custom-light: #906ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2da5",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 262.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42827,
    "c": 0.1801,
    "h": 294.7
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#5A2DA5
secondary
#A1C16D
accent
#E047A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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