#5A34C5#5A34C5

#5A34C5 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.209 H 287.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5A34C5
RGBrgb(90, 52, 197)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 74%, 77%)
CMYKcmyk(54.3%, 73.6%, 0%, 22.7%)
CIE-LABlab(35.32, 52.07, -69.50)
CIE-LCHlch(35.32, 86.84, 306.84°)
OKLaboklab(46.56% 0.0619 -0.1999)
OKLCHoklch(46.56% 0.209 287.2)
XYZxyz(15.5195, 8.6600, 53.6663)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C5 #9FC534
analogous
#3457C5 #5A34C5 #A334C5
triadic
#5A34C5 #C55A34 #34C55A
tetradic
#5A34C5 #C53457 #9FC534 #34C5A3
square
#5A34C5 #C53457 #9FC534 #34C5A3
split-complementary
#5A34C5 #C5A334 #57C534
monochromatic
#2E1A64 #442795 #5A34C5 #7F61D5 #A691E2

Accessibility & contrast

On white

7.69
#5A34C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A34C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C5
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C5#FFFFFF#000000##FFFFFF
##5A34C51.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#2D5C7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a34c5;
/* rgb */ color: rgb(90, 52, 197);
/* oklch */ color: oklch(46.6% 0.209 287.2);
Tailwind
colors: {
  custom: {
    50: '#946fd8',
    500: '#5a34c5',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c5;
$custom-light: #946fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c5",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 255.724,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46555,
    "c": 0.20929,
    "h": 287.2
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#5A34C5
secondary
#BBCD88
accent
#E146B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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