#5A34C8#5A34C8

#5A34C8 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.213 H 286.7°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5A34C8
RGBrgb(90, 52, 200)
HSLhsl(255, 59%, 49%)
HSVhsv(255, 74%, 78%)
CMYKcmyk(55%, 74%, 0%, 21.6%)
CIE-LABlab(35.59, 52.92, -70.80)
CIE-LCHlch(35.59, 88.39, 306.78°)
OKLaboklab(46.83% 0.0612 -0.2037)
OKLCHoklch(46.83% 0.213 286.7)
XYZxyz(15.8667, 8.7989, 55.4947)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C8 #A2C834
analogous
#3458C8 #5A34C8 #A434C8
triadic
#5A34C8 #C85A34 #34C85A
tetradic
#5A34C8 #C83458 #A2C834 #34C8A4
square
#5A34C8 #C83458 #A2C834 #34C8A4
split-complementary
#5A34C8 #C8A434 #58C834
monochromatic
#2E1B67 #442797 #5A34C8 #8063D6 #A893E3

Accessibility & contrast

On white

7.61
#5A34C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A34C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C8
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C8#FFFFFF#000000##FFFFFF
##5A34C81.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#295D7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a34c8;
/* rgb */ color: rgb(90, 52, 200);
/* oklch */ color: oklch(46.8% 0.213 286.7);
Tailwind
colors: {
  custom: {
    50: '#9470da',
    500: '#5a34c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c8;
$custom-light: #9470da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c8",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 255.405,
    "s": 58.73,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.21273,
    "h": 286.7
  },
  "luminance": 0.088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A34C8

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

Preview Lab → · Contrast checker → · Palette generator →

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