#5D45AF#5D45AF

#5D45AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.5% C 0.161 H 289.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5D45AF
RGBrgb(93, 69, 175)
HSLhsl(254, 43%, 48%)
HSVhsv(254, 61%, 69%)
CMYKcmyk(46.9%, 60.6%, 0%, 31.4%)
CIE-LABlab(37.26, 36.85, -53.37)
CIE-LCHlch(37.26, 64.86, 304.63°)
OKLaboklab(47.46% 0.0531 -0.1525)
OKLCHoklch(47.46% 0.161 289.2)
XYZxyz(14.3780, 9.6780, 41.6596)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45AF #97AF45
analogous
#4562AF #5D45AF #9245AF
triadic
#5D45AF #AF5D45 #45AF5D
tetradic
#5D45AF #AF4562 #97AF45 #45AF92
square
#5D45AF #AF4562 #97AF45 #45AF92
split-complementary
#5D45AF #AF9245 #62AF45
monochromatic
#2E2257 #463483 #5D45AF #806CC5 #A698D6

Accessibility & contrast

On white

7.15
#5D45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5D45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D45AF
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45AF#FFFFFF#000000##FFFFFF
##5D45AF1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#435D73
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d45af;
/* rgb */ color: rgb(93, 69, 175);
/* oklch */ color: oklch(47.5% 0.161 289.2);
Tailwind
colors: {
  custom: {
    50: '#917ac8',
    500: '#5d45af',
    950: '#000000',
  },
}
SCSS
$custom: #5d45af;
$custom-light: #917ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45af",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 253.585,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47463,
    "c": 0.16144,
    "h": 289.2
  },
  "luminance": 0.09679
}

Semantic roles & 50–950 ramp

primary
#5D45AF
secondary
#B6C28D
accent
#D355B7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5D45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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