#5A328D#5A328D

#5A328D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.145 H 300.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5A328D
RGBrgb(90, 50, 141)
HSLhsl(266, 48%, 37%)
HSVhsv(266, 65%, 55%)
CMYKcmyk(36.2%, 64.5%, 0%, 44.7%)
CIE-LABlab(30.35, 37.55, -44.00)
CIE-LCHlch(30.35, 57.84, 310.48°)
OKLaboklab(41.58% 0.0734 -0.125)
OKLCHoklch(41.58% 0.145 300.4)
XYZxyz(10.1636, 6.3779, 25.8897)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A328D #658D32
analogous
#32378D #5A328D #88328D
triadic
#5A328D #8D5A32 #328D5A
tetradic
#5A328D #8D3237 #658D32 #328D88
square
#5A328D #8D3237 #658D32 #328D88
split-complementary
#5A328D #8D8832 #378D32
monochromatic
#201233 #3D2260 #5A328D #7742BA #976ECC

Accessibility & contrast

On white

9.23
#5A328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A328D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A328D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A328D#FFFFFF#000000##FFFFFF
##5A328D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#0E478B
Tritanopia (blue-blind)
#4F465B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a328d;
/* rgb */ color: rgb(90, 50, 141);
/* oklch */ color: oklch(41.6% 0.145 300.4);
Tailwind
colors: {
  custom: {
    50: '#8d6caf',
    500: '#5a328d',
    950: '#000000',
  },
}
SCSS
$custom: #5a328d;
$custom-light: #8d6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a328d",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 266.374,
    "s": 47.644,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41575,
    "c": 0.14496,
    "h": 300.4
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#5A328D
secondary
#92B368
accent
#D7519C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A328D

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

Preview Lab → · Contrast checker → · Palette generator →

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