#5D3BAF#5D3BAF

#5D3BAF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.175 H 291.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5D3BAF
RGBrgb(93, 59, 175)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 66%, 69%)
CMYKcmyk(46.9%, 66.3%, 0%, 31.4%)
CIE-LABlab(35.10, 42.61, -56.87)
CIE-LCHlch(35.10, 71.06, 306.85°)
OKLaboklab(45.9% 0.064 -0.1628)
OKLCHoklch(45.9% 0.175 291.4)
XYZxyz(13.8139, 8.5497, 41.4716)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3BAF #8DAF3B
analogous
#3B53AF #5D3BAF #973BAF
triadic
#5D3BAF #AF5D3B #3BAF5D
tetradic
#5D3BAF #AF3B53 #8DAF3B #3BAF97
square
#5D3BAF #AF3B53 #8DAF3B #3BAF97
split-complementary
#5D3BAF #AF973B #53AF3B
monochromatic
#2C1C53 #452C81 #5D3BAF #7E5EC9 #A28CD8

Accessibility & contrast

On white

7.75
#5D3BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D3BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3BAF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3BAF#FFFFFF#000000##FFFFFF
##5D3BAF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#445770
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3baf;
/* rgb */ color: rgb(93, 59, 175);
/* oklch */ color: oklch(45.9% 0.175 291.4);
Tailwind
colors: {
  custom: {
    50: '#9273c8',
    500: '#5d3baf',
    950: '#000000',
  },
}
SCSS
$custom: #5d3baf;
$custom-light: #9273c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3baf",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 257.586,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45897,
    "c": 0.17488,
    "h": 291.4
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#5D3BAF
secondary
#B0C383
accent
#D94FB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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