#5A2CBC#5A2CBC

#5A2CBC is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.207 H 289.9°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5A2CBC
RGBrgb(90, 44, 188)
HSLhsl(259, 62%, 45%)
HSVhsv(259, 77%, 74%)
CMYKcmyk(52.1%, 76.6%, 0%, 26.3%)
CIE-LABlab(33.15, 53.42, -67.78)
CIE-LCHlch(33.15, 86.30, 308.24°)
OKLaboklab(44.78% 0.0704 -0.1948)
OKLCHoklch(44.78% 0.207 289.9)
XYZxyz(14.1916, 7.6052, 48.2874)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CBC #8EBC2C
analogous
#2C46BC #5A2CBC #A22CBC
triadic
#5A2CBC #BC5A2C #2CBC5A
tetradic
#5A2CBC #BC2C46 #8EBC2C #2CBCA2
square
#5A2CBC #BC2C46 #8EBC2C #2CBCA2
split-complementary
#5A2CBC #BCA22C #46BC2C
monochromatic
#2B1559 #42208A #5A2CBC #7A4FD6 #A081E1

Accessibility & contrast

On white

8.33
#5A2CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5A2CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CBC
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CBC#FFFFFF#000000##FFFFFF
##5A2CBC1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#365473
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2cbc;
/* rgb */ color: rgb(90, 44, 188);
/* oklch */ color: oklch(44.8% 0.207 289.9);
Tailwind
colors: {
  custom: {
    50: '#936bd1',
    500: '#5a2cbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cbc;
$custom-light: #936bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cbc",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 188
  },
  "hsl": {
    "h": 259.167,
    "s": 62.069,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44776,
    "c": 0.20715,
    "h": 289.9
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#5A2CBC
secondary
#B1CA79
accent
#E543B1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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