#5A2CC0#5A2CC0

#5A2CC0 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.212 H 289.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5A2CC0
RGBrgb(90, 44, 192)
HSLhsl(259, 63%, 46%)
HSVhsv(259, 77%, 75%)
CMYKcmyk(53.1%, 77.1%, 0%, 24.7%)
CIE-LABlab(33.52, 54.50, -69.52)
CIE-LCHlch(33.52, 88.34, 308.09°)
OKLaboklab(45.15% 0.0693 -0.1999)
OKLCHoklch(45.15% 0.212 289.1)
XYZxyz(14.6288, 7.7801, 50.5898)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CC0 #92C02C
analogous
#2C48C0 #5A2CC0 #A42CC0
triadic
#5A2CC0 #C05A2C #2CC05A
tetradic
#5A2CC0 #C02C48 #92C02C #2CC0A4
square
#5A2CC0 #C02C48 #92C02C #2CC0A4
split-complementary
#5A2CC0 #C0A42C #48C02C
monochromatic
#2B155C #43218E #5A2CC0 #7B52D7 #A184E3

Accessibility & contrast

On white

8.22
#5A2CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A2CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CC0
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CC0#FFFFFF#000000##FFFFFF
##5A2CC01.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#325675
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2cc0;
/* rgb */ color: rgb(90, 44, 192);
/* oklch */ color: oklch(45.2% 0.212 289.1);
Tailwind
colors: {
  custom: {
    50: '#936bd4',
    500: '#5a2cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cc0;
$custom-light: #936bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cc0",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 192
  },
  "hsl": {
    "h": 258.649,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45151,
    "c": 0.21158,
    "h": 289.1
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#5A2CC0
secondary
#B3CC7C
accent
#E642B3
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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