#5D45CA#5D45CA

#5D45CA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.196 H 285.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5D45CA
RGBrgb(93, 69, 202)
HSLhsl(251, 56%, 53%)
HSVhsv(251, 66%, 79%)
CMYKcmyk(54%, 65.8%, 0%, 20.8%)
CIE-LABlab(39.32, 44.91, -65.85)
CIE-LCHlch(39.32, 79.71, 304.29°)
OKLaboklab(49.61% 0.0507 -0.1892)
OKLCHoklch(49.61% 0.196 285)
XYZxyz(17.2998, 10.8467, 57.0477)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45CA #B2CA45
analogous
#456FCA #5D45CA #9F45CA
triadic
#5D45CA #CA5D45 #45CA5D
tetradic
#5D45CA #CA456F #B2CA45 #45CA9F
square
#5D45CA #CA456F #B2CA45 #45CA9F
split-complementary
#5D45CA #CA9F45 #6FCA45
monochromatic
#302174 #442FA3 #5D45CA #8675D8 #B0A4E5

Accessibility & contrast

On white

6.63
#5D45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5D45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45CA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45CA#FFFFFF#000000##FFFFFF
##5D45CA1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#2E6681
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d45ca;
/* rgb */ color: rgb(93, 69, 202);
/* oklch */ color: oklch(49.6% 0.196 285.0);
Tailwind
colors: {
  custom: {
    50: '#957adb',
    500: '#5d45ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d45ca;
$custom-light: #957adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45ca",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 250.827,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4961,
    "c": 0.19586,
    "h": 285
  },
  "luminance": 0.10848
}

Semantic roles & 50–950 ramp

primary
#5D45CA
secondary
#C8D299
accent
#DF49C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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