#5D45BB#5D45BB

#5D45BB is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.177 H 287.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5D45BB
RGBrgb(93, 69, 187)
HSLhsl(252, 46%, 50%)
HSVhsv(252, 63%, 73%)
CMYKcmyk(50.3%, 63.1%, 0%, 26.7%)
CIE-LABlab(38.15, 40.42, -59.01)
CIE-LCHlch(38.15, 71.53, 304.41°)
OKLaboklab(48.39% 0.0523 -0.1691)
OKLCHoklch(48.39% 0.177 287.2)
XYZxyz(15.6093, 10.1705, 48.1447)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45BB #A3BB45
analogous
#4568BB #5D45BB #9845BB
triadic
#5D45BB #BB5D45 #45BB5D
tetradic
#5D45BB #BB4568 #A3BB45 #45BB98
square
#5D45BB #BB4568 #A3BB45 #45BB98
split-complementary
#5D45BB #BB9845 #68BB45
monochromatic
#302462 #47348F #5D45BB #8472CB #AB9FDC

Accessibility & contrast

On white

6.92
#5D45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45BB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45BB#FFFFFF#000000##FFFFFF
##5D45BB1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#3B6179
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d45bb;
/* rgb */ color: rgb(93, 69, 187);
/* oklch */ color: oklch(48.4% 0.177 287.2);
Tailwind
colors: {
  custom: {
    50: '#937ad0',
    500: '#5d45bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d45bb;
$custom-light: #937ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45bb",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 252.203,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48392,
    "c": 0.17698,
    "h": 287.2
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#5D45BB
secondary
#BEC894
accent
#D652BB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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