#5D41A5#5D41A5

#5D41A5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.1% C 0.154 H 292.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5D41A5
RGBrgb(93, 65, 165)
HSLhsl(257, 43%, 45%)
HSVhsv(257, 61%, 65%)
CMYKcmyk(43.6%, 60.6%, 0%, 35.3%)
CIE-LABlab(35.64, 36.29, -50.02)
CIE-LCHlch(35.64, 61.80, 305.96°)
OKLaboklab(46.05% 0.0581 -0.1426)
OKLCHoklch(46.05% 0.154 292.2)
XYZxyz(13.1942, 8.8240, 36.5980)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41A5 #89A541
analogous
#4157A5 #5D41A5 #8F41A5
triadic
#5D41A5 #A55D41 #41A55D
tetradic
#5D41A5 #A54157 #89A541 #41A58F
square
#5D41A5 #A54157 #89A541 #41A58F
split-complementary
#5D41A5 #A58F41 #57A541
monochromatic
#2C1E4D #443079 #5D41A5 #7D62C1 #A18ED2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D41A5#FFFFFF#000000##FFFFFF
##5D41A51.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)
#0055A8
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#49576C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d41a5;
/* rgb */ color: rgb(93, 65, 165);
/* oklch */ color: oklch(46.1% 0.154 292.2);
Tailwind
colors: {
  custom: {
    50: '#9077c0',
    500: '#5d41a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d41a5;
$custom-light: #9077c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41a5",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 256.8,
    "s": 43.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46054,
    "c": 0.15401,
    "h": 292.2
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#5D41A5
secondary
#AEBE84
accent
#D355B0
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5D41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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