#5A34A4#5A34A4

#5A34A4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.170 H 293.7°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5A34A4
RGBrgb(90, 52, 164)
HSLhsl(260, 52%, 42%)
HSVhsv(260, 68%, 64%)
CMYKcmyk(45.1%, 68.3%, 0%, 35.7%)
CIE-LABlab(32.50, 42.77, -54.53)
CIE-LCHlch(32.50, 69.30, 308.11°)
OKLaboklab(43.68% 0.0685 -0.156)
OKLCHoklch(43.68% 0.17 293.7)
XYZxyz(12.1435, 7.3096, 35.8858)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34A4 #7EA434
analogous
#3446A4 #5A34A4 #9234A4
triadic
#5A34A4 #A45A34 #34A45A
tetradic
#5A34A4 #A43446 #7EA434 #34A492
square
#5A34A4 #A43446 #7EA434 #34A492
split-complementary
#5A34A4 #A49234 #46A434
monochromatic
#271747 #402576 #5A34A4 #774EC7 #9B7DD6

Accessibility & contrast

On white

8.53
#5A34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5A34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34A4
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34A4#FFFFFF#000000##FFFFFF
##5A34A41.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#454F68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a34a4;
/* rgb */ color: rgb(90, 52, 164);
/* oklch */ color: oklch(43.7% 0.170 293.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ec0',
    500: '#5a34a4',
    950: '#000000',
  },
}
SCSS
$custom: #5a34a4;
$custom-light: #8f6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34a4",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 260.357,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.17035,
    "h": 293.7
  },
  "luminance": 0.0731
}

Semantic roles & 50–950 ramp

primary
#5A34A4
secondary
#A6BF75
accent
#DB4CAB
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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