#5A45BA#5A45BA

#5A45BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.0% C 0.176 H 285.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5A45BA
RGBrgb(90, 69, 186)
HSLhsl(251, 46%, 50%)
HSVhsv(251, 63%, 73%)
CMYKcmyk(51.6%, 62.9%, 0%, 27.1%)
CIE-LABlab(37.80, 39.55, -59.01)
CIE-LCHlch(37.80, 71.03, 303.83°)
OKLaboklab(48.05% 0.0483 -0.1691)
OKLCHoklch(48.05% 0.176 285.9)
XYZxyz(15.2049, 9.9743, 47.5689)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BA #A5BA45
analogous
#456BBA #5A45BA #9445BA
triadic
#5A45BA #BA5A45 #45BA5A
tetradic
#5A45BA #BA456B #A5BA45 #45BA94
square
#5A45BA #BA456B #A5BA45 #45BA94
split-complementary
#5A45BA #BA9445 #6BBA45
monochromatic
#2F2461 #44348D #5A45BA #8272CB #A99EDB

Accessibility & contrast

On white

7.01
#5A45BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5A45BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A45BA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BA#FFFFFF#000000##FFFFFF
##5A45BA1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#356179
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a45ba;
/* rgb */ color: rgb(90, 69, 186);
/* oklch */ color: oklch(48.0% 0.176 285.9);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5a45ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a45ba;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45ba",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 250.769,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.48047,
    "c": 0.17592,
    "h": 285.9
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

primary
#5A45BA
secondary
#BEC893
accent
#D652BE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5A45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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