#5D3EAF#5D3EAF

#5D3EAF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.171 H 290.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5D3EAF
RGBrgb(93, 62, 175)
HSLhsl(256, 48%, 46%)
HSVhsv(256, 65%, 69%)
CMYKcmyk(46.9%, 64.6%, 0%, 31.4%)
CIE-LABlab(35.73, 40.92, -55.85)
CIE-LCHlch(35.73, 69.24, 306.23°)
OKLaboklab(46.35% 0.0608 -0.1598)
OKLCHoklch(46.35% 0.171 290.8)
XYZxyz(13.9725, 8.8670, 41.5244)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EAF #90AF3E
analogous
#3E58AF #5D3EAF #963EAF
triadic
#5D3EAF #AF5D3E #3EAF5D
tetradic
#5D3EAF #AF3E58 #90AF3E #3EAF96
square
#5D3EAF #AF3E58 #90AF3E #3EAF96
split-complementary
#5D3EAF #AF963E #58AF3E
monochromatic
#2D1E55 #452E82 #5D3EAF #7E63C8 #A390D8

Accessibility & contrast

On white

7.57
#5D3EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5D3EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EAF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EAF#FFFFFF#000000##FFFFFF
##5D3EAF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#445971
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3eaf;
/* rgb */ color: rgb(93, 62, 175);
/* oklch */ color: oklch(46.3% 0.171 290.8);
Tailwind
colors: {
  custom: {
    50: '#9275c8',
    500: '#5d3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5d3eaf;
$custom-light: #9275c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3eaf",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 256.46,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46348,
    "c": 0.17096,
    "h": 290.8
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#5D3EAF
secondary
#B2C386
accent
#D751B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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