#5A2CA5#5A2CA5

#5A2CA5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.181 H 294.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA5
RGBrgb(90, 44, 165)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(45.5%, 73.3%, 0%, 35.3%)
CIE-LABlab(31.09, 47.19, -57.43)
CIE-LCHlch(31.09, 74.33, 309.41°)
OKLaboklab(42.7% 0.0762 -0.1645)
OKLCHoklch(42.7% 0.181 294.9)
XYZxyz(11.9068, 6.6913, 36.2542)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA5 #77A52C
analogous
#2C3AA5 #5A2CA5 #962CA5
triadic
#5A2CA5 #A55A2C #2CA55A
tetradic
#5A2CA5 #A52C3A #77A52C #2CA596
square
#5A2CA5 #A52C3A #77A52C #2CA596
split-complementary
#5A2CA5 #A5962C #3AA52C
monochromatic
#251244 #401F75 #5A2CA5 #7642CD #9972D9

Accessibility & contrast

On white

8.98
#5A2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CA5
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA5#FFFFFF#000000##FFFFFF
##5A2CA51.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#454B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ca5;
/* rgb */ color: rgb(90, 44, 165);
/* oklch */ color: oklch(42.7% 0.181 294.9);
Tailwind
colors: {
  custom: {
    50: '#9069c1',
    500: '#5a2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca5;
$custom-light: #9069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca5",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 262.81,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42702,
    "c": 0.18126,
    "h": 294.9
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#5A2CA5
secondary
#A1C16C
accent
#E147A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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