#5A34BA#5A34BA

#5A34BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.197 H 289.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5A34BA
RGBrgb(90, 52, 186)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.6%, 72%, 0%, 27.1%)
CIE-LABlab(34.34, 48.96, -64.64)
CIE-LCHlch(34.34, 81.09, 307.14°)
OKLaboklab(45.56% 0.0644 -0.1857)
OKLCHoklch(45.56% 0.197 289.1)
XYZxyz(14.3048, 8.1742, 47.2689)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BA #94BA34
analogous
#3451BA #5A34BA #9D34BA
triadic
#5A34BA #BA5A34 #34BA5A
tetradic
#5A34BA #BA3451 #94BA34 #34BA9D
square
#5A34BA #BA3451 #94BA34 #34BA9D
split-complementary
#5A34BA #BA9D34 #51BA34
monochromatic
#2C195A #43278A #5A34BA #7C5AD1 #A28ADE

Accessibility & contrast

On white

7.97
#5A34BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5A34BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34BA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BA#FFFFFF#000000##FFFFFF
##5A34BA1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#375774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a34ba;
/* rgb */ color: rgb(90, 52, 186);
/* oklch */ color: oklch(45.6% 0.197 289.1);
Tailwind
colors: {
  custom: {
    50: '#926fd0',
    500: '#5a34ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a34ba;
$custom-light: #926fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34ba",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 257.015,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.19654,
    "h": 289.1
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#5A34BA
secondary
#B4C881
accent
#E048B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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