#5D45AB#5D45AB

#5D45AB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.2% C 0.156 H 289.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5D45AB
RGBrgb(93, 69, 171)
HSLhsl(254, 43%, 47%)
HSVhsv(254, 60%, 67%)
CMYKcmyk(45.6%, 59.6%, 0%, 32.9%)
CIE-LABlab(36.97, 35.67, -51.45)
CIE-LCHlch(36.97, 62.61, 304.73°)
OKLaboklab(47.16% 0.0532 -0.1468)
OKLCHoklch(47.16% 0.156 289.9)
XYZxyz(13.9909, 9.5232, 39.6212)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45AB #93AB45
analogous
#4560AB #5D45AB #9045AB
triadic
#5D45AB #AB5D45 #45AB5D
tetradic
#5D45AB #AB4560 #93AB45 #45AB90
square
#5D45AB #AB4560 #93AB45 #45AB90
split-complementary
#5D45AB #AB9045 #60AB45
monochromatic
#2E2254 #45337F #5D45AB #7F6AC3 #A596D5

Accessibility & contrast

On white

7.23
#5D45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5D45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D45AB
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45AB#FFFFFF#000000##FFFFFF
##5D45AB1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#455C71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d45ab;
/* rgb */ color: rgb(93, 69, 171);
/* oklch */ color: oklch(47.2% 0.156 289.9);
Tailwind
colors: {
  custom: {
    50: '#917ac5',
    500: '#5d45ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d45ab;
$custom-light: #917ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45ab",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 254.118,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.15619,
    "h": 289.9
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#5D45AB
secondary
#B4C08B
accent
#D256B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5D45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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