#5A349E#5A349E

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

Color values

HEX#5A349E
RGBrgb(90, 52, 158)
HSLhsl(262, 50%, 41%)
HSVhsv(262, 67%, 62%)
CMYKcmyk(43%, 67.1%, 0%, 38%)
CIE-LABlab(32.03, 41.10, -51.67)
CIE-LCHlch(32.03, 66.02, 308.50°)
OKLaboklab(43.19% 0.0693 -0.1476)
OKLCHoklch(43.19% 0.163 295.2)
XYZxyz(11.6144, 7.0980, 33.0992)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A349E #789E34
analogous
#34439E #5A349E #8F349E
triadic
#5A349E #9E5A34 #349E5A
tetradic
#5A349E #9E3443 #789E34 #349E8F
square
#5A349E #9E3443 #789E34 #349E8F
split-complementary
#5A349E #9E8F34 #439E34
monochromatic
#261642 #402570 #5A349E #774BC4 #9A79D3

Accessibility & contrast

On white

8.68
#5A349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A349E
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A349E#FFFFFF#000000##FFFFFF
##5A349E1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a349e;
/* rgb */ color: rgb(90, 52, 158);
/* oklch */ color: oklch(43.2% 0.163 295.2);
Tailwind
colors: {
  custom: {
    50: '#8e6ebb',
    500: '#5a349e',
    950: '#000000',
  },
}
SCSS
$custom: #5a349e;
$custom-light: #8e6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a349e",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 261.509,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.16305,
    "h": 295.2
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#5A349E
secondary
#A1BC72
accent
#DA4EA8
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A349E

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

Preview Lab → · Contrast checker → · Palette generator →

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