#5A34BC#5A34BC

#5A34BC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.199 H 288.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A34BC
RGBrgb(90, 52, 188)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 72%, 74%)
CMYKcmyk(52.1%, 72.3%, 0%, 26.3%)
CIE-LABlab(34.52, 49.53, -65.53)
CIE-LCHlch(34.52, 82.14, 307.08°)
OKLaboklab(45.74% 0.064 -0.1883)
OKLCHoklch(45.74% 0.199 288.8)
XYZxyz(14.5189, 8.2598, 48.3965)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34BC #96BC34
analogous
#3452BC #5A34BC #9E34BC
triadic
#5A34BC #BC5A34 #34BC5A
tetradic
#5A34BC #BC3452 #96BC34 #34BC9E
square
#5A34BC #BC3452 #96BC34 #34BC9E
split-complementary
#5A34BC #BC9E34 #52BC34
monochromatic
#2C195C #43278C #5A34BC #7D5BD2 #A38BDF

Accessibility & contrast

On white

7.92
#5A34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34BC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34BC#FFFFFF#000000##FFFFFF
##5A34BC1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#355875
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a34bc;
/* rgb */ color: rgb(90, 52, 188);
/* oklch */ color: oklch(45.7% 0.199 288.8);
Tailwind
colors: {
  custom: {
    50: '#926fd1',
    500: '#5a34bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a34bc;
$custom-light: #926fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34bc",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 256.765,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45741,
    "c": 0.19887,
    "h": 288.8
  },
  "luminance": 0.0826
}

Semantic roles & 50–950 ramp

primary
#5A34BC
secondary
#B5C983
accent
#E048B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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