#5A45BB#5A45BB

#5A45BB is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.1% C 0.177 H 285.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5A45BB
RGBrgb(90, 69, 187)
HSLhsl(251, 46%, 50%)
HSVhsv(251, 63%, 73%)
CMYKcmyk(51.9%, 63.1%, 0%, 26.7%)
CIE-LABlab(37.87, 39.85, -59.47)
CIE-LCHlch(37.87, 71.58, 303.82°)
OKLaboklab(48.13% 0.0482 -0.1705)
OKLCHoklch(48.13% 0.177 285.8)
XYZxyz(15.3115, 10.0170, 48.1307)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BB #A6BB45
analogous
#456BBB #5A45BB #9545BB
triadic
#5A45BB #BB5A45 #45BB5A
tetradic
#5A45BB #BB456B #A6BB45 #45BB95
square
#5A45BB #BB456B #A6BB45 #45BB95
split-complementary
#5A45BB #BB9545 #6BBB45
monochromatic
#2F2462 #44348F #5A45BB #8272CB #AA9FDC

Accessibility & contrast

On white

6.99
#5A45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5A45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45BB
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BB#FFFFFF#000000##FFFFFF
##5A45BB1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#346179
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a45bb;
/* rgb */ color: rgb(90, 69, 187);
/* oklch */ color: oklch(48.1% 0.177 285.8);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5a45bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a45bb;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45bb",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 250.678,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.17721,
    "h": 285.8
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#5A45BB
secondary
#BFC894
accent
#D652BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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