#5A328E#5A328E

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

Color values

HEX#5A328E
RGBrgb(90, 50, 142)
HSLhsl(266, 48%, 38%)
HSVhsv(266, 65%, 56%)
CMYKcmyk(36.6%, 64.8%, 0%, 44.3%)
CIE-LABlab(30.42, 37.82, -44.50)
CIE-LCHlch(30.42, 58.40, 310.36°)
OKLaboklab(41.65% 0.0733 -0.1265)
OKLCHoklch(41.65% 0.146 300.1)
XYZxyz(10.2383, 6.4078, 26.2834)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A328E #668E32
analogous
#32388E #5A328E #88328E
triadic
#5A328E #8E5A32 #328E5A
tetradic
#5A328E #8E3238 #668E32 #328E88
square
#5A328E #8E3238 #668E32 #328E88
split-complementary
#5A328E #8E8832 #388E32
monochromatic
#211233 #3D2261 #5A328E #7742BB #976ECC

Accessibility & contrast

On white

9.20
#5A328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A328E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A328E#FFFFFF#000000##FFFFFF
##5A328E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#0B478C
Tritanopia (blue-blind)
#4F465B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a328e;
/* rgb */ color: rgb(90, 50, 142);
/* oklch */ color: oklch(41.6% 0.146 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d6cb0',
    500: '#5a328e',
    950: '#000000',
  },
}
SCSS
$custom: #5a328e;
$custom-light: #8d6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a328e",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 266.087,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4165,
    "c": 0.14619,
    "h": 300.1
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#5A328E
secondary
#93B468
accent
#D8509D
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A328E

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

Preview Lab → · Contrast checker → · Palette generator →

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