#5D34C5#5D34C5

#5D34C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.209 H 288.5°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5D34C5
RGBrgb(93, 52, 197)
HSLhsl(257, 58%, 49%)
HSVhsv(257, 74%, 77%)
CMYKcmyk(52.8%, 73.6%, 0%, 22.7%)
CIE-LABlab(35.62, 52.51, -68.99)
CIE-LCHlch(35.62, 86.70, 307.27°)
OKLaboklab(46.84% 0.0663 -0.1983)
OKLCHoklch(46.84% 0.209 288.5)
XYZxyz(15.8173, 8.8136, 53.6803)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34C5 #9CC534
analogous
#3453C5 #5D34C5 #A634C5
triadic
#5D34C5 #C55D34 #34C55D
tetradic
#5D34C5 #C53453 #9CC534 #34C5A6
square
#5D34C5 #C53453 #9CC534 #34C5A6
split-complementary
#5D34C5 #C5A634 #53C534
monochromatic
#2F1A64 #462795 #5D34C5 #8261D5 #A891E2

Accessibility & contrast

On white

7.60
#5D34C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5D34C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34C5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34C5#FFFFFF#000000##FFFFFF
##5D34C51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#355B7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d34c5;
/* rgb */ color: rgb(93, 52, 197);
/* oklch */ color: oklch(46.8% 0.209 288.5);
Tailwind
colors: {
  custom: {
    50: '#9570d8',
    500: '#5d34c5',
    950: '#000000',
  },
}
SCSS
$custom: #5d34c5;
$custom-light: #9570d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34c5",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 256.966,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46839,
    "c": 0.20913,
    "h": 288.5
  },
  "luminance": 0.08814
}

Semantic roles & 50–950 ramp

primary
#5D34C5
secondary
#B9CD88
accent
#E146B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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