#5A2CBA#5A2CBA

#5A2CBA is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.205 H 290.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5A2CBA
RGBrgb(90, 44, 186)
HSLhsl(259, 62%, 45%)
HSVhsv(259, 76%, 73%)
CMYKcmyk(51.6%, 76.3%, 0%, 27.1%)
CIE-LABlab(32.96, 52.88, -66.90)
CIE-LCHlch(32.96, 85.28, 308.32°)
OKLaboklab(44.59% 0.0709 -0.1923)
OKLCHoklch(44.59% 0.205 290.3)
XYZxyz(13.9775, 7.5196, 47.1598)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CBA #8CBA2C
analogous
#2C45BA #5A2CBA #A12CBA
triadic
#5A2CBA #BA5A2C #2CBA5A
tetradic
#5A2CBA #BA2C45 #8CBA2C #2CBAA1
square
#5A2CBA #BA2C45 #8CBA2C #2CBAA1
split-complementary
#5A2CBA #BAA12C #45BA2C
monochromatic
#2A1557 #422089 #5A2CBA #7A4ED5 #9F80E1

Accessibility & contrast

On white

8.39
#5A2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CBA
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CBA#FFFFFF#000000##FFFFFF
##5A2CBA1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#375472
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2cba;
/* rgb */ color: rgb(90, 44, 186);
/* oklch */ color: oklch(44.6% 0.205 290.3);
Tailwind
colors: {
  custom: {
    50: '#936ad0',
    500: '#5a2cba',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cba;
$custom-light: #936ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cba",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 259.437,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4459,
    "c": 0.20493,
    "h": 290.3
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#5A2CBA
secondary
#AFCA78
accent
#E543B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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