#5A2CB3#5A2CB3

#5A2CB3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.197 H 291.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5A2CB3
RGBrgb(90, 44, 179)
HSLhsl(260, 61%, 44%)
HSVhsv(260, 75%, 70%)
CMYKcmyk(49.7%, 75.4%, 0%, 29.8%)
CIE-LABlab(32.32, 50.98, -63.80)
CIE-LCHlch(32.32, 81.66, 308.63°)
OKLaboklab(43.95% 0.0728 -0.1832)
OKLCHoklch(43.95% 0.197 291.7)
XYZxyz(13.2515, 7.2292, 43.3362)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CB3 #85B32C
analogous
#2C42B3 #5A2CB3 #9D2CB3
triadic
#5A2CB3 #B35A2C #2CB35A
tetradic
#5A2CB3 #B32C42 #85B32C #2CB39D
square
#5A2CB3 #B32C42 #85B32C #2CB39D
split-complementary
#5A2CB3 #B39D2C #42B32C
monochromatic
#291451 #412082 #5A2CB3 #784AD2 #9D7BDF

Accessibility & contrast

On white

8.59
#5A2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CB3
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CB3#FFFFFF#000000##FFFFFF
##5A2CB31.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#3C516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2cb3;
/* rgb */ color: rgb(90, 44, 179);
/* oklch */ color: oklch(43.9% 0.197 291.7);
Tailwind
colors: {
  custom: {
    50: '#926acb',
    500: '#5a2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cb3;
$custom-light: #926acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cb3",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 260.444,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43947,
    "c": 0.19711,
    "h": 291.7
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#5A2CB3
secondary
#ABC774
accent
#E444AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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