#5A45BC#5A45BC

#5A45BC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.2% C 0.178 H 285.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5A45BC
RGBrgb(90, 69, 188)
HSLhsl(251, 47%, 50%)
HSVhsv(251, 63%, 74%)
CMYKcmyk(52.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(37.95, 40.15, -59.93)
CIE-LCHlch(37.95, 72.14, 303.82°)
OKLaboklab(48.21% 0.0482 -0.1719)
OKLCHoklch(48.21% 0.178 285.7)
XYZxyz(15.4190, 10.0599, 48.6965)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BC #A7BC45
analogous
#456BBC #5A45BC #9545BC
triadic
#5A45BC #BC5A45 #45BC5A
tetradic
#5A45BC #BC456B #A7BC45 #45BC95
square
#5A45BC #BC456B #A7BC45 #45BC95
split-complementary
#5A45BC #BC9545 #6BBC45
monochromatic
#2F2463 #443490 #5A45BC #8272CC #AA9FDC

Accessibility & contrast

On white

6.97
#5A45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45BC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BC#FFFFFF#000000##FFFFFF
##5A45BC1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#34627A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a45bc;
/* rgb */ color: rgb(90, 69, 188);
/* oklch */ color: oklch(48.2% 0.178 285.7);
Tailwind
colors: {
  custom: {
    50: '#917ad1',
    500: '#5a45bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a45bc;
$custom-light: #917ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45bc",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 250.588,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48206,
    "c": 0.17849,
    "h": 285.7
  },
  "luminance": 0.10061
}

Semantic roles & 50–950 ramp

primary
#5A45BC
secondary
#C0C994
accent
#D751BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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