#5A327B#5A327B

#5A327B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.123 H 307.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5A327B
RGBrgb(90, 50, 123)
HSLhsl(273, 42%, 34%)
HSVhsv(273, 59%, 48%)
CMYKcmyk(26.8%, 59.3%, 0%, 51.8%)
CIE-LABlab(29.12, 32.83, -34.75)
CIE-LCHlch(29.12, 47.81, 313.38°)
OKLaboklab(40.29% 0.0738 -0.0979)
OKLCHoklch(40.29% 0.123 307)
XYZxyz(8.9315, 5.8850, 19.4005)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A327B #537B32
analogous
#36327B #5A327B #7B3278
triadic
#5A327B #7B5A32 #327B5A
tetradic
#5A327B #7B3632 #537B32 #32787B
square
#5A327B #7B3632 #537B32 #32787B
split-complementary
#5A327B #787B32 #327B36
monochromatic
#1A0F24 #3A204F #5A327B #7A44A7 #9866C1

Accessibility & contrast

On white

9.65
#5A327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A327B
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A327B#FFFFFF#000000##FFFFFF
##5A327B1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#274579
Tritanopia (blue-blind)
#554051
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a327b;
/* rgb */ color: rgb(90, 50, 123);
/* oklch */ color: oklch(40.3% 0.123 307.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ca2',
    500: '#5a327b',
    950: '#000000',
  },
}
SCSS
$custom: #5a327b;
$custom-light: #8b6ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a327b",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 272.877,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.12259,
    "h": 307
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#5A327B
secondary
#81A960
accent
#D2568E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A327B

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

Preview Lab → · Contrast checker → · Palette generator →

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