#5A2CA6#5A2CA6

#5A2CA6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.182 H 294.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA6
RGBrgb(90, 44, 166)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(45.8%, 73.5%, 0%, 34.9%)
CIE-LABlab(31.18, 47.46, -57.89)
CIE-LCHlch(31.18, 74.86, 309.35°)
OKLaboklab(42.79% 0.076 -0.1658)
OKLCHoklch(42.79% 0.182 294.6)
XYZxyz(11.9982, 6.7279, 36.7354)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA6 #78A62C
analogous
#2C3BA6 #5A2CA6 #972CA6
triadic
#5A2CA6 #A65A2C #2CA65A
tetradic
#5A2CA6 #A62C3B #78A62C #2CA697
square
#5A2CA6 #A62C3B #78A62C #2CA697
split-complementary
#5A2CA6 #A6972C #3BA62C
monochromatic
#261245 #401F76 #5A2CA6 #7742CD #9A73DA

Accessibility & contrast

On white

8.95
#5A2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2CA6
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA6#FFFFFF#000000##FFFFFF
##5A2CA61.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#444C66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ca6;
/* rgb */ color: rgb(90, 44, 166);
/* oklch */ color: oklch(42.8% 0.182 294.6);
Tailwind
colors: {
  custom: {
    50: '#906ac1',
    500: '#5a2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca6;
$custom-light: #906ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca6",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 262.623,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42789,
    "c": 0.1824,
    "h": 294.6
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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