#5A2CB1#5A2CB1

#5A2CB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.195 H 292.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5A2CB1
RGBrgb(90, 44, 177)
HSLhsl(261, 60%, 43%)
HSVhsv(261, 75%, 69%)
CMYKcmyk(49.2%, 75.1%, 0%, 30.6%)
CIE-LABlab(32.14, 50.43, -62.90)
CIE-LCHlch(32.14, 80.63, 308.72°)
OKLaboklab(43.77% 0.0733 -0.1805)
OKLCHoklch(43.77% 0.195 292.1)
XYZxyz(13.0507, 7.1489, 42.2787)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CB1 #83B12C
analogous
#2C40B1 #5A2CB1 #9C2CB1
triadic
#5A2CB1 #B15A2C #2CB15A
tetradic
#5A2CB1 #B12C40 #83B12C #2CB19C
square
#5A2CB1 #B12C40 #83B12C #2CB19C
split-complementary
#5A2CB1 #B19C2C #40B12C
monochromatic
#28144F #412080 #5A2CB1 #7849D2 #9C7ADE

Accessibility & contrast

On white

8.64
#5A2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CB1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CB1#FFFFFF#000000##FFFFFF
##5A2CB11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#3E506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2cb1;
/* rgb */ color: rgb(90, 44, 177);
/* oklch */ color: oklch(43.8% 0.195 292.1);
Tailwind
colors: {
  custom: {
    50: '#916ac9',
    500: '#5a2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cb1;
$custom-light: #916ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cb1",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 260.752,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43766,
    "c": 0.19486,
    "h": 292.1
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

primary
#5A2CB1
secondary
#A9C673
accent
#E344AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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