#5D3FCC#5D3FCC

#5D3FCC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.205 H 285.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5D3FCC
RGBrgb(93, 63, 204)
HSLhsl(253, 58%, 52%)
HSVhsv(253, 69%, 80%)
CMYKcmyk(54.4%, 69.1%, 0%, 20%)
CIE-LABlab(38.27, 48.82, -68.73)
CIE-LCHlch(38.27, 84.30, 305.39°)
OKLaboklab(48.91% 0.0558 -0.1976)
OKLCHoklch(48.91% 0.205 285.8)
XYZxyz(17.1875, 10.2409, 58.1861)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3FCC #AECC3F
analogous
#3F67CC #5D3FCC #A43FCC
triadic
#5D3FCC #CC5D3F #3FCC5D
tetradic
#5D3FCC #CC3F67 #AECC3F #3FCCA4
square
#5D3FCC #CC3F67 #AECC3F #3FCCA4
split-complementary
#5D3FCC #CCA43F #67CC3F
monochromatic
#301E72 #452BA3 #5D3FCC #866FD9 #AFA0E6

Accessibility & contrast

On white

6.89
#5D3FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5D3FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D3FCC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3FCC#FFFFFF#000000##FFFFFF
##5D3FCC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#2C6481
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d3fcc;
/* rgb */ color: rgb(93, 63, 204);
/* oklch */ color: oklch(48.9% 0.205 285.8);
Tailwind
colors: {
  custom: {
    50: '#9676dd',
    500: '#5d3fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5d3fcc;
$custom-light: #9676dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3fcc",
  "rgb": {
    "r": 93,
    "g": 63,
    "b": 204
  },
  "hsl": {
    "h": 252.766,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48907,
    "c": 0.20532,
    "h": 285.8
  },
  "luminance": 0.10242
}

Semantic roles & 50–950 ramp

primary
#5D3FCC
secondary
#C5D295
accent
#E147C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D3FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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