#5A2CB6#5A2CB6

#5A2CB6 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.200 H 291.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5A2CB6
RGBrgb(90, 44, 182)
HSLhsl(260, 61%, 44%)
HSVhsv(260, 76%, 71%)
CMYKcmyk(50.5%, 75.8%, 0%, 28.6%)
CIE-LABlab(32.59, 51.79, -65.14)
CIE-LCHlch(32.59, 83.22, 308.49°)
OKLaboklab(44.22% 0.072 -0.1871)
OKLCHoklch(44.22% 0.2 291.1)
XYZxyz(13.5582, 7.3519, 44.9516)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CB6 #88B62C
analogous
#2C43B6 #5A2CB6 #9F2CB6
triadic
#5A2CB6 #B65A2C #2CB65A
tetradic
#5A2CB6 #B62C43 #88B62C #2CB69F
square
#5A2CB6 #B62C43 #88B62C #2CB69F
split-complementary
#5A2CB6 #B69F2C #43B62C
monochromatic
#291453 #422085 #5A2CB6 #794CD4 #9E7DE0

Accessibility & contrast

On white

8.50
#5A2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5A2CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CB6
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CB6#FFFFFF#000000##FFFFFF
##5A2CB61.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3A526F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2cb6;
/* rgb */ color: rgb(90, 44, 182);
/* oklch */ color: oklch(44.2% 0.200 291.1);
Tailwind
colors: {
  custom: {
    50: '#926acd',
    500: '#5a2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cb6;
$custom-light: #926acd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cb6",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 260,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44221,
    "c": 0.20046,
    "h": 291.1
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#5A2CB6
secondary
#ADC876
accent
#E444AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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