#5A34BD#5A34BD

#5A34BD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.200 H 288.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5A34BD
RGBrgb(90, 52, 189)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 72%, 74%)
CMYKcmyk(52.4%, 72.5%, 0%, 25.9%)
CIE-LABlab(34.61, 49.81, -65.98)
CIE-LCHlch(34.61, 82.67, 307.05°)
OKLaboklab(45.83% 0.0638 -0.1896)
OKLCHoklch(45.83% 0.2 288.6)
XYZxyz(14.6271, 8.3031, 48.9662)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BD #97BD34
analogous
#3453BD #5A34BD #9E34BD
triadic
#5A34BD #BD5A34 #34BD5A
tetradic
#5A34BD #BD3453 #97BD34 #34BD9E
square
#5A34BD #BD3453 #97BD34 #34BD9E
split-complementary
#5A34BD #BD9E34 #53BD34
monochromatic
#2C1A5D #43278D #5A34BD #7D5CD2 #A38CDF

Accessibility & contrast

On white

7.89
#5A34BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5A34BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34BD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BD#FFFFFF#000000##FFFFFF
##5A34BD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#345975
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a34bd;
/* rgb */ color: rgb(90, 52, 189);
/* oklch */ color: oklch(45.8% 0.200 288.6);
Tailwind
colors: {
  custom: {
    50: '#926fd2',
    500: '#5a34bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a34bd;
$custom-light: #926fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34bd",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 256.642,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.20004,
    "h": 288.6
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#5A34BD
secondary
#B6CA83
accent
#E048B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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