#5A34A2#5A34A2

#5A34A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.168 H 294.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5A34A2
RGBrgb(90, 52, 162)
HSLhsl(261, 51%, 42%)
HSVhsv(261, 68%, 64%)
CMYKcmyk(44.4%, 67.9%, 0%, 36.5%)
CIE-LABlab(32.34, 42.21, -53.58)
CIE-LCHlch(32.34, 68.21, 308.23°)
OKLaboklab(43.52% 0.0688 -0.1532)
OKLCHoklch(43.52% 0.168 294.2)
XYZxyz(11.9643, 7.2380, 34.9421)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34A2 #7CA234
analogous
#3445A2 #5A34A2 #9134A2
triadic
#5A34A2 #A25A34 #34A25A
tetradic
#5A34A2 #A23445 #7CA234 #34A291
square
#5A34A2 #A23445 #7CA234 #34A291
split-complementary
#5A34A2 #A29134 #45A234
monochromatic
#271645 #402574 #5A34A2 #774DC6 #9A7CD5

Accessibility & contrast

On white

8.58
#5A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34A2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34A2#FFFFFF#000000##FFFFFF
##5A34A21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#464F66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a34a2;
/* rgb */ color: rgb(90, 52, 162);
/* oklch */ color: oklch(43.5% 0.168 294.2);
Tailwind
colors: {
  custom: {
    50: '#8f6ebe',
    500: '#5a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a34a2;
$custom-light: #8f6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34a2",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 260.727,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43516,
    "c": 0.16792,
    "h": 294.2
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#5A34A2
secondary
#A4BE74
accent
#DB4DAA
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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