#5A359C#5A359C

#5A359C is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.159 H 295.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5A359C
RGBrgb(90, 53, 156)
HSLhsl(262, 49%, 41%)
HSVhsv(262, 66%, 61%)
CMYKcmyk(42.3%, 66%, 0%, 38.8%)
CIE-LABlab(32.08, 39.98, -50.38)
CIE-LCHlch(32.08, 64.31, 308.44°)
OKLaboklab(43.18% 0.0685 -0.1438)
OKLCHoklch(43.18% 0.159 295.5)
XYZxyz(11.4887, 7.1199, 32.2150)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A359C #779C35
analogous
#35449C #5A359C #8D359C
triadic
#5A359C #9C5A35 #359C5A
tetradic
#5A359C #9C3544 #779C35 #359C8D
square
#5A359C #9C3544 #779C35 #359C8D
split-complementary
#5A359C #9C8D35 #449C35
monochromatic
#251641 #40256E #5A359C #764CC2 #997AD2

Accessibility & contrast

On white

8.66
#5A359C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A359C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A359C
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A359C#FFFFFF#000000##FFFFFF
##5A359C1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#494D64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a359c;
/* rgb */ color: rgb(90, 53, 156);
/* oklch */ color: oklch(43.2% 0.159 295.5);
Tailwind
colors: {
  custom: {
    50: '#8e6eba',
    500: '#5a359c',
    950: '#000000',
  },
}
SCSS
$custom: #5a359c;
$custom-light: #8e6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a359c",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 156
  },
  "hsl": {
    "h": 261.553,
    "s": 49.282,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43179,
    "c": 0.15924,
    "h": 295.5
  },
  "luminance": 0.0712
}

Semantic roles & 50–950 ramp

primary
#5A359C
secondary
#A1BA72
accent
#D94FA7
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A359C

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

Preview Lab → · Contrast checker → · Palette generator →

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