#5A34BE#5A34BE

#5A34BE is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.201 H 288.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5A34BE
RGBrgb(90, 52, 190)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 73%, 75%)
CMYKcmyk(52.6%, 72.6%, 0%, 25.5%)
CIE-LABlab(34.69, 50.10, -66.42)
CIE-LCHlch(34.69, 83.19, 307.02°)
OKLaboklab(45.92% 0.0636 -0.1909)
OKLCHoklch(45.92% 0.201 288.4)
XYZxyz(14.7360, 8.3466, 49.5398)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BE #98BE34
analogous
#3453BE #5A34BE #9F34BE
triadic
#5A34BE #BE5A34 #34BE5A
tetradic
#5A34BE #BE3453 #98BE34 #34BE9F
square
#5A34BE #BE3453 #98BE34 #34BE9F
split-complementary
#5A34BE #BE9F34 #53BE34
monochromatic
#2C1A5E #43278E #5A34BE #7D5DD3 #A48DE0

Accessibility & contrast

On white

7.87
#5A34BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A34BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34BE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BE#FFFFFF#000000##FFFFFF
##5A34BE1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a34be;
/* rgb */ color: rgb(90, 52, 190);
/* oklch */ color: oklch(45.9% 0.201 288.4);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5a34be',
    950: '#000000',
  },
}
SCSS
$custom: #5a34be;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34be",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 256.522,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.2012,
    "h": 288.4
  },
  "luminance": 0.08347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A34BE

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

Preview Lab → · Contrast checker → · Palette generator →

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