#5A34C9#5A34C9

#5A34C9 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.214 H 286.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5A34C9
RGBrgb(90, 52, 201)
HSLhsl(255, 59%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(55.2%, 74.1%, 0%, 21.2%)
CIE-LABlab(35.69, 53.20, -71.23)
CIE-LCHlch(35.69, 88.91, 306.75°)
OKLaboklab(46.92% 0.061 -0.205)
OKLCHoklch(46.92% 0.214 286.6)
XYZxyz(15.9839, 8.8458, 56.1122)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C9 #A3C934
analogous
#3459C9 #5A34C9 #A534C9
triadic
#5A34C9 #C95A34 #34C95A
tetradic
#5A34C9 #C93459 #A3C934 #34C9A5
square
#5A34C9 #C93459 #A3C934 #34C9A5
split-complementary
#5A34C9 #C9A534 #59C934
monochromatic
#2E1B68 #442798 #5A34C9 #8163D7 #A894E3

Accessibility & contrast

On white

7.58
#5A34C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A34C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C9#FFFFFF#000000##FFFFFF
##5A34C91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#285D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a34c9;
/* rgb */ color: rgb(90, 52, 201);
/* oklch */ color: oklch(46.9% 0.214 286.6);
Tailwind
colors: {
  custom: {
    50: '#9470db',
    500: '#5a34c9',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c9;
$custom-light: #9470db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c9",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 201
  },
  "hsl": {
    "h": 255.302,
    "s": 58.893,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46923,
    "c": 0.21388,
    "h": 286.6
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A34C9

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

Preview Lab → · Contrast checker → · Palette generator →

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