#5D45CF#5D45CF

#5D45CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.0% C 0.202 H 284.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5D45CF
RGBrgb(93, 69, 207)
HSLhsl(250, 59%, 54%)
HSVhsv(250, 67%, 81%)
CMYKcmyk(55.1%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.73, 46.40, -68.08)
CIE-LCHlch(39.73, 82.39, 304.28°)
OKLaboklab(50.03% 0.0501 -0.1957)
OKLCHoklch(50.03% 0.202 284.3)
XYZxyz(17.9014, 11.0873, 60.2162)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45CF #B7CF45
analogous
#4572CF #5D45CF #A245CF
triadic
#5D45CF #CF5D45 #45CF5D
tetradic
#5D45CF #CF4572 #B7CF45 #45CFA2
square
#5D45CF #CF4572 #B7CF45 #45CFA2
split-complementary
#5D45CF #CFA245 #72CF45
monochromatic
#2F207A #422CAB #5D45CF #8776DC #B2A6E8

Accessibility & contrast

On white

6.53
#5D45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5D45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45CF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45CF#FFFFFF#000000##FFFFFF
##5D45CF1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#286884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d45cf;
/* rgb */ color: rgb(93, 69, 207);
/* oklch */ color: oklch(50.0% 0.202 284.3);
Tailwind
colors: {
  custom: {
    50: '#967adf',
    500: '#5d45cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d45cf;
$custom-light: #967adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45cf",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 250.435,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50029,
    "c": 0.20203,
    "h": 284.3
  },
  "luminance": 0.11088
}

Semantic roles & 50–950 ramp

primary
#5D45CF
secondary
#CBD59B
accent
#E246C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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