#5A34BF#5A34BF

#5A34BF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.202 H 288.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5A34BF
RGBrgb(90, 52, 191)
HSLhsl(256, 57%, 48%)
HSVhsv(256, 73%, 75%)
CMYKcmyk(52.9%, 72.8%, 0%, 25.1%)
CIE-LABlab(34.78, 50.38, -66.86)
CIE-LCHlch(34.78, 83.72, 307.00°)
OKLaboklab(46.01% 0.0633 -0.1922)
OKLCHoklch(46.01% 0.202 288.2)
XYZxyz(14.8456, 8.3905, 50.1174)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BF #99BF34
analogous
#3453BF #5A34BF #A034BF
triadic
#5A34BF #BF5A34 #34BF5A
tetradic
#5A34BF #BF3453 #99BF34 #34BFA0
square
#5A34BF #BF3453 #99BF34 #34BFA0
split-complementary
#5A34BF #BFA034 #53BF34
monochromatic
#2D1A5F #43278F #5A34BF #7D5DD3 #A48DE0

Accessibility & contrast

On white

7.84
#5A34BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5A34BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34BF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BF#FFFFFF#000000##FFFFFF
##5A34BF1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#335976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a34bf;
/* rgb */ color: rgb(90, 52, 191);
/* oklch */ color: oklch(46.0% 0.202 288.2);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5a34bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a34bf;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34bf",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 256.403,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4601,
    "c": 0.20236,
    "h": 288.2
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#5A34BF
secondary
#B7CA84
accent
#E047B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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