#5D45C8#5D45C8

#5D45C8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.4% C 0.193 H 285.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5D45C8
RGBrgb(93, 69, 200)
HSLhsl(251, 54%, 53%)
HSVhsv(251, 66%, 78%)
CMYKcmyk(53.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(39.16, 44.31, -64.95)
CIE-LCHlch(39.16, 78.63, 304.30°)
OKLaboklab(49.45% 0.051 -0.1865)
OKLCHoklch(49.45% 0.193 285.3)
XYZxyz(17.0645, 10.7526, 55.8087)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45C8 #B0C845
analogous
#456FC8 #5D45C8 #9E45C8
triadic
#5D45C8 #C85D45 #45C85D
tetradic
#5D45C8 #C8456F #B0C845 #45C89E
square
#5D45C8 #C8456F #B0C845 #45C89E
split-complementary
#5D45C8 #C89E45 #6FC845
monochromatic
#302171 #442FA0 #5D45C8 #8674D6 #AFA3E4

Accessibility & contrast

On white

6.66
#5D45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5D45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45C8
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45C8#FFFFFF#000000##FFFFFF
##5D45C81.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#306680
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d45c8;
/* rgb */ color: rgb(93, 69, 200);
/* oklch */ color: oklch(49.4% 0.193 285.3);
Tailwind
colors: {
  custom: {
    50: '#957ada',
    500: '#5d45c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d45c8;
$custom-light: #957ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45c8",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 250.992,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49445,
    "c": 0.19337,
    "h": 285.3
  },
  "luminance": 0.10754
}

Semantic roles & 50–950 ramp

primary
#5D45C8
secondary
#C6D198
accent
#DE4AC3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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