#5A34B4#5A34B4

#5A34B4 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.189 H 290.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5A34B4
RGBrgb(90, 52, 180)
HSLhsl(258, 55%, 45%)
HSVhsv(258, 71%, 71%)
CMYKcmyk(50%, 71.1%, 0%, 29.4%)
CIE-LABlab(33.82, 47.27, -61.94)
CIE-LCHlch(33.82, 77.91, 307.35°)
OKLaboklab(45.04% 0.0657 -0.1777)
OKLCHoklch(45.04% 0.189 290.3)
XYZxyz(13.6803, 7.9244, 43.9799)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34B4 #8EB434
analogous
#344EB4 #5A34B4 #9A34B4
triadic
#5A34B4 #B45A34 #34B45A
tetradic
#5A34B4 #B4344E #8EB434 #34B49A
square
#5A34B4 #B4344E #8EB434 #34B49A
split-complementary
#5A34B4 #B49A34 #4EB434
monochromatic
#2B1955 #422685 #5A34B4 #7A57CE #A086DC

Accessibility & contrast

On white

8.12
#5A34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34B4
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34B4#FFFFFF#000000##FFFFFF
##5A34B41.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#3B5570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a34b4;
/* rgb */ color: rgb(90, 52, 180);
/* oklch */ color: oklch(45.0% 0.189 290.3);
Tailwind
colors: {
  custom: {
    50: '#916fcb',
    500: '#5a34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5a34b4;
$custom-light: #916fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34b4",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 257.813,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.18948,
    "h": 290.3
  },
  "luminance": 0.07925
}

Semantic roles & 50–950 ramp

primary
#5A34B4
secondary
#B1C67E
accent
#DF49B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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