#5A349D#5A349D

#5A349D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.1% C 0.162 H 295.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5A349D
RGBrgb(90, 52, 157)
HSLhsl(262, 50%, 41%)
HSVhsv(262, 67%, 62%)
CMYKcmyk(42.7%, 66.9%, 0%, 38.4%)
CIE-LABlab(31.95, 40.82, -51.19)
CIE-LCHlch(31.95, 65.47, 308.57°)
OKLaboklab(43.11% 0.0695 -0.1462)
OKLCHoklch(43.11% 0.162 295.4)
XYZxyz(11.5286, 7.0637, 32.6478)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A349D #779D34
analogous
#34439D #5A349D #8E349D
triadic
#5A349D #9D5A34 #349D5A
tetradic
#5A349D #9D3443 #779D34 #349D8E
square
#5A349D #9D3443 #779D34 #349D8E
split-complementary
#5A349D #9D8E34 #439D34
monochromatic
#251641 #40256F #5A349D #764BC3 #9979D3

Accessibility & contrast

On white

8.70
#5A349D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A349D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A349D
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A349D#FFFFFF#000000##FFFFFF
##5A349D1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#484D64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a349d;
/* rgb */ color: rgb(90, 52, 157);
/* oklch */ color: oklch(43.1% 0.162 295.4);
Tailwind
colors: {
  custom: {
    50: '#8e6ebb',
    500: '#5a349d',
    950: '#000000',
  },
}
SCSS
$custom: #5a349d;
$custom-light: #8e6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a349d",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 157
  },
  "hsl": {
    "h": 261.714,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43112,
    "c": 0.16183,
    "h": 295.4
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#5A349D
secondary
#A1BB72
accent
#DA4EA7
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A349D

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

Preview Lab → · Contrast checker → · Palette generator →

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