#5A2CA4#5A2CA4

#5A2CA4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.180 H 295.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA4
RGBrgb(90, 44, 164)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 73%, 64%)
CMYKcmyk(45.1%, 73.2%, 0%, 35.7%)
CIE-LABlab(31.01, 46.92, -56.96)
CIE-LCHlch(31.01, 73.80, 309.48°)
OKLaboklab(42.62% 0.0764 -0.1631)
OKLCHoklch(42.62% 0.18 295.1)
XYZxyz(11.8162, 6.6551, 35.7767)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA4 #76A42C
analogous
#2C3AA4 #5A2CA4 #962CA4
triadic
#5A2CA4 #A45A2C #2CA45A
tetradic
#5A2CA4 #A42C3A #76A42C #2CA496
square
#5A2CA4 #A42C3A #76A42C #2CA496
split-complementary
#5A2CA4 #A4962C #3AA42C
monochromatic
#251243 #401F74 #5A2CA4 #7641CC #9971D9

Accessibility & contrast

On white

9.01
#5A2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CA4
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA4#FFFFFF#000000##FFFFFF
##5A2CA41.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#454B65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ca4;
/* rgb */ color: rgb(90, 44, 164);
/* oklch */ color: oklch(42.6% 0.180 295.1);
Tailwind
colors: {
  custom: {
    50: '#9069c0',
    500: '#5a2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca4;
$custom-light: #9069c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca4",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 263,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42616,
    "c": 0.18012,
    "h": 295.1
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#5A2CA4
secondary
#A0C06B
accent
#E147A6
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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