#5A45BD#5A45BD

#5A45BD is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.3% C 0.180 H 285.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5A45BD
RGBrgb(90, 69, 189)
HSLhsl(251, 48%, 51%)
HSVhsv(251, 63%, 74%)
CMYKcmyk(52.4%, 63.5%, 0%, 25.9%)
CIE-LABlab(38.03, 40.45, -60.39)
CIE-LCHlch(38.03, 72.69, 303.82°)
OKLaboklab(48.29% 0.0481 -0.1732)
OKLCHoklch(48.29% 0.18 285.5)
XYZxyz(15.5271, 10.1032, 49.2662)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BD #A8BD45
analogous
#456CBD #5A45BD #9645BD
triadic
#5A45BD #BD5A45 #45BD5A
tetradic
#5A45BD #BD456C #A8BD45 #45BD96
square
#5A45BD #BD456C #A8BD45 #45BD96
split-complementary
#5A45BD #BD9645 #6CBD45
monochromatic
#2F2464 #443491 #5A45BD #8272CD #AA9FDD

Accessibility & contrast

On white

6.95
#5A45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5A45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45BD
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BD#FFFFFF#000000##FFFFFF
##5A45BD1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#33627A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a45bd;
/* rgb */ color: rgb(90, 69, 189);
/* oklch */ color: oklch(48.3% 0.180 285.5);
Tailwind
colors: {
  custom: {
    50: '#917ad2',
    500: '#5a45bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a45bd;
$custom-light: #917ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45bd",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 250.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.17978,
    "h": 285.5
  },
  "luminance": 0.10104
}

Semantic roles & 50–950 ramp

primary
#5A45BD
secondary
#C0CA94
accent
#D751C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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