#5C34BB#5C34BB

#5C34BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.198 H 289.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5C34BB
RGBrgb(92, 52, 187)
HSLhsl(258, 56%, 47%)
HSVhsv(258, 72%, 73%)
CMYKcmyk(50.8%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.64, 49.57, -64.74)
CIE-LCHlch(34.64, 81.53, 307.44°)
OKLaboklab(45.85% 0.0671 -0.1859)
OKLCHoklch(45.85% 0.198 289.9)
XYZxyz(14.6087, 8.3185, 47.8400)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C34BB #93BB34
analogous
#3450BB #5C34BB #A034BB
triadic
#5C34BB #BB5C34 #34BB5C
tetradic
#5C34BB #BB3450 #93BB34 #34BBA0
square
#5C34BB #BB3450 #93BB34 #34BBA0
split-complementary
#5C34BB #BBA034 #50BB34
monochromatic
#2D195B #44278B #5C34BB #7E5BD1 #A48BDF

Accessibility & contrast

On white

7.88
#5C34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5C34BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C34BB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C34BB#FFFFFF#000000##FFFFFF
##5C34BB1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#3A5874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c34bb;
/* rgb */ color: rgb(92, 52, 187);
/* oklch */ color: oklch(45.8% 0.198 289.9);
Tailwind
colors: {
  custom: {
    50: '#936fd1',
    500: '#5c34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c34bb;
$custom-light: #936fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c34bb",
  "rgb": {
    "r": 92,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 257.778,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45848,
    "c": 0.19765,
    "h": 289.9
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#5C34BB
secondary
#B4C982
accent
#E048B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5C34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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