#5A45BF#5A45BF

#5A45BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.182 H 285.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5A45BF
RGBrgb(90, 69, 191)
HSLhsl(250, 49%, 51%)
HSVhsv(250, 64%, 75%)
CMYKcmyk(52.9%, 63.9%, 0%, 25.1%)
CIE-LABlab(38.18, 41.06, -61.31)
CIE-LCHlch(38.18, 73.79, 303.81°)
OKLaboklab(48.45% 0.0479 -0.1759)
OKLCHoklch(48.45% 0.182 285.2)
XYZxyz(15.7457, 10.1906, 50.4174)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BF #AABF45
analogous
#456DBF #5A45BF #9745BF
triadic
#5A45BF #BF5A45 #45BF5A
tetradic
#5A45BF #BF456D #AABF45 #45BF97
square
#5A45BF #BF456D #AABF45 #45BF97
split-complementary
#5A45BF #BF9745 #6DBF45
monochromatic
#2F2366 #443394 #5A45BF #8273CF #ABA0DE

Accessibility & contrast

On white

6.91
#5A45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5A45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45BF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BF#FFFFFF#000000##FFFFFF
##5A45BF1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#31637C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a45bf;
/* rgb */ color: rgb(90, 69, 191);
/* oklch */ color: oklch(48.4% 0.182 285.2);
Tailwind
colors: {
  custom: {
    50: '#917ad3',
    500: '#5a45bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a45bf;
$custom-light: #917ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45bf",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 250.328,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.18233,
    "h": 285.2
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#5A45BF
secondary
#C2CB95
accent
#D84FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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