#5A34AB#5A34AB

#5A34AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.179 H 292.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5A34AB
RGBrgb(90, 52, 171)
HSLhsl(259, 53%, 44%)
HSVhsv(259, 70%, 67%)
CMYKcmyk(47.4%, 69.6%, 0%, 32.9%)
CIE-LABlab(33.07, 44.73, -57.80)
CIE-LCHlch(33.07, 73.09, 307.74°)
OKLaboklab(44.26% 0.0673 -0.1656)
OKLCHoklch(44.26% 0.179 292.1)
XYZxyz(12.7931, 7.5695, 39.3072)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34AB #85AB34
analogous
#3449AB #5A34AB #9534AB
triadic
#5A34AB #AB5A34 #34AB5A
tetradic
#5A34AB #AB3449 #85AB34 #34AB95
square
#5A34AB #AB3449 #85AB34 #34AB95
split-complementary
#5A34AB #AB9534 #49AB34
monochromatic
#29174D #41267C #5A34AB #7852CA #9D81D9

Accessibility & contrast

On white

8.35
#5A34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5A34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34AB
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34AB#FFFFFF#000000##FFFFFF
##5A34AB1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#41526B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a34ab;
/* rgb */ color: rgb(90, 52, 171);
/* oklch */ color: oklch(44.3% 0.179 292.1);
Tailwind
colors: {
  custom: {
    50: '#906ec5',
    500: '#5a34ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a34ab;
$custom-light: #906ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34ab",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 259.16,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44264,
    "c": 0.17878,
    "h": 292.1
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#5A34AB
secondary
#ABC279
accent
#DD4BAE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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