#5A34BB#5A34BB

#5A34BB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.198 H 289.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5A34BB
RGBrgb(90, 52, 187)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.9%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.43, 49.25, -65.09)
CIE-LCHlch(34.43, 81.62, 307.11°)
OKLaboklab(45.65% 0.0642 -0.187)
OKLCHoklch(45.65% 0.198 289)
XYZxyz(14.4115, 8.2168, 47.8307)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BB #95BB34
analogous
#3452BB #5A34BB #9E34BB
triadic
#5A34BB #BB5A34 #34BB5A
tetradic
#5A34BB #BB3452 #95BB34 #34BB9E
square
#5A34BB #BB3452 #95BB34 #34BB9E
split-complementary
#5A34BB #BB9E34 #52BB34
monochromatic
#2C195B #43278B #5A34BB #7C5BD1 #A28BDF

Accessibility & contrast

On white

7.94
#5A34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A34BB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BB#FFFFFF#000000##FFFFFF
##5A34BB1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#365874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a34bb;
/* rgb */ color: rgb(90, 52, 187);
/* oklch */ color: oklch(45.7% 0.198 289.0);
Tailwind
colors: {
  custom: {
    50: '#926fd1',
    500: '#5a34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a34bb;
$custom-light: #926fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34bb",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 256.889,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45652,
    "c": 0.19771,
    "h": 289
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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