#5D4BA2#5D4BA2

#5D4BA2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.6% C 0.135 H 289.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5D4BA2
RGBrgb(93, 75, 162)
HSLhsl(252, 37%, 46%)
HSVhsv(252, 54%, 64%)
CMYKcmyk(42.6%, 53.7%, 0%, 36.5%)
CIE-LABlab(37.78, 29.37, -44.77)
CIE-LCHlch(37.78, 53.55, 303.26°)
OKLaboklab(47.57% 0.0458 -0.1272)
OKLCHoklch(47.57% 0.135 289.8)
XYZxyz(13.5501, 9.9675, 35.3854)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4BA2 #90A24B
analogous
#4B65A2 #5D4BA2 #894BA2
triadic
#5D4BA2 #A25D4B #4BA25D
tetradic
#5D4BA2 #A24B65 #90A24B #4BA289
square
#5D4BA2 #A24B65 #90A24B #4BA289
split-complementary
#5D4BA2 #A2894B #65A24B
monochromatic
#2D244E #453878 #5D4BA2 #7E6EBC #A398CF

Accessibility & contrast

On white

7.01
#5D4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5D4BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4BA2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4BA2#FFFFFF#000000##FFFFFF
##5D4BA21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#495D6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d4ba2;
/* rgb */ color: rgb(93, 75, 162);
/* oklch */ color: oklch(47.6% 0.135 289.8);
Tailwind
colors: {
  custom: {
    50: '#8f7ebe',
    500: '#5d4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5d4ba2;
$custom-light: #8f7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4ba2",
  "rgb": {
    "r": 93,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 252.414,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4757,
    "c": 0.13518,
    "h": 289.8
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#5D4BA2
secondary
#B2BC8D
accent
#CD5BB5
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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