#5A34C7#5A34C7

#5A34C7 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.212 H 286.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5A34C7
RGBrgb(90, 52, 199)
HSLhsl(256, 59%, 49%)
HSVhsv(256, 74%, 78%)
CMYKcmyk(54.8%, 73.9%, 0%, 22%)
CIE-LABlab(35.50, 52.64, -70.37)
CIE-LCHlch(35.50, 87.88, 306.80°)
OKLaboklab(46.74% 0.0615 -0.2025)
OKLCHoklch(46.74% 0.212 286.9)
XYZxyz(15.7502, 8.7523, 54.8812)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C7 #A1C734
analogous
#3458C7 #5A34C7 #A434C7
triadic
#5A34C7 #C75A34 #34C75A
tetradic
#5A34C7 #C73458 #A1C734 #34C7A4
square
#5A34C7 #C73458 #A1C734 #34C7A4
split-complementary
#5A34C7 #C7A434 #58C734
monochromatic
#2E1B66 #442796 #5A34C7 #8062D6 #A793E3

Accessibility & contrast

On white

7.63
#5A34C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A34C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C7#FFFFFF#000000##FFFFFF
##5A34C71.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#004FC4
Tritanopia (blue-blind)
#2A5D7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a34c7;
/* rgb */ color: rgb(90, 52, 199);
/* oklch */ color: oklch(46.7% 0.212 286.9);
Tailwind
colors: {
  custom: {
    50: '#9470d9',
    500: '#5a34c7',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c7;
$custom-light: #9470d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c7",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 255.51,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46738,
    "c": 0.21158,
    "h": 286.9
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#5A34C7
secondary
#BCCE89
accent
#E246BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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