#5C34B4#5C34B4

#5C34B4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.189 H 291.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5C34B4
RGBrgb(92, 52, 180)
HSLhsl(259, 55%, 45%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.9%, 71.1%, 0%, 29.4%)
CIE-LABlab(34.04, 47.61, -61.58)
CIE-LCHlch(34.04, 77.84, 307.71°)
OKLaboklab(45.24% 0.0686 -0.1766)
OKLCHoklch(45.24% 0.189 291.2)
XYZxyz(13.8775, 8.0261, 43.9891)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C34B4 #8CB434
analogous
#344CB4 #5C34B4 #9C34B4
triadic
#5C34B4 #B45C34 #34B45C
tetradic
#5C34B4 #B4344C #8CB434 #34B49C
square
#5C34B4 #B4344C #8CB434 #34B49C
split-complementary
#5C34B4 #B49C34 #4CB434
monochromatic
#2B1955 #442685 #5C34B4 #7C57CE #A186DC

Accessibility & contrast

On white

8.06
#5C34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5C34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C34B4
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C34B4#FFFFFF#000000##FFFFFF
##5C34B41.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#3F5570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c34b4;
/* rgb */ color: rgb(92, 52, 180);
/* oklch */ color: oklch(45.2% 0.189 291.2);
Tailwind
colors: {
  custom: {
    50: '#926fcb',
    500: '#5c34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5c34b4;
$custom-light: #926fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c34b4",
  "rgb": {
    "r": 92,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 258.75,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45236,
    "c": 0.18948,
    "h": 291.2
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#5C34B4
secondary
#AFC67E
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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