#5D34C3#5D34C3

#5D34C3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.207 H 288.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5D34C3
RGBrgb(93, 52, 195)
HSLhsl(257, 58%, 48%)
HSVhsv(257, 73%, 76%)
CMYKcmyk(52.3%, 73.3%, 0%, 23.5%)
CIE-LABlab(35.44, 51.95, -68.11)
CIE-LCHlch(35.44, 85.67, 307.33°)
OKLaboklab(46.66% 0.0668 -0.1958)
OKLCHoklch(46.66% 0.207 288.8)
XYZxyz(15.5896, 8.7225, 52.4814)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34C3 #9AC334
analogous
#3452C3 #5D34C3 #A434C3
triadic
#5D34C3 #C35D34 #34C35D
tetradic
#5D34C3 #C33452 #9AC334 #34C3A4
square
#5D34C3 #C33452 #9AC334 #34C3A4
split-complementary
#5D34C3 #C3A434 #52C334
monochromatic
#2F1A62 #462793 #5D34C3 #8160D5 #A790E1

Accessibility & contrast

On white

7.65
#5D34C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5D34C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34C3
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34C3#FFFFFF#000000##FFFFFF
##5D34C31.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#365B79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d34c3;
/* rgb */ color: rgb(93, 52, 195);
/* oklch */ color: oklch(46.7% 0.207 288.8);
Tailwind
colors: {
  custom: {
    50: '#9570d6',
    500: '#5d34c3',
    950: '#000000',
  },
}
SCSS
$custom: #5d34c3;
$custom-light: #9570d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34c3",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 195
  },
  "hsl": {
    "h": 257.203,
    "s": 57.895,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46659,
    "c": 0.20684,
    "h": 288.8
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#5D34C3
secondary
#B8CC87
accent
#E147B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D34C3

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

Preview Lab → · Contrast checker → · Palette generator →

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