#5A45BE#5A45BE

#5A45BE is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.181 H 285.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5A45BE
RGBrgb(90, 69, 190)
HSLhsl(250, 48%, 51%)
HSVhsv(250, 64%, 75%)
CMYKcmyk(52.6%, 63.7%, 0%, 25.5%)
CIE-LABlab(38.10, 40.76, -60.85)
CIE-LCHlch(38.10, 73.24, 303.81°)
OKLaboklab(48.37% 0.048 -0.1746)
OKLCHoklch(48.37% 0.181 285.4)
XYZxyz(15.6361, 10.1468, 49.8398)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45BE #A9BE45
analogous
#456CBE #5A45BE #9645BE
triadic
#5A45BE #BE5A45 #45BE5A
tetradic
#5A45BE #BE456C #A9BE45 #45BE96
square
#5A45BE #BE456C #A9BE45 #45BE96
split-complementary
#5A45BE #BE9645 #6CBE45
monochromatic
#2F2365 #443393 #5A45BE #8272CE #AAA0DE

Accessibility & contrast

On white

6.93
#5A45BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5A45BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45BE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45BE#FFFFFF#000000##FFFFFF
##5A45BE1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#32627B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a45be;
/* rgb */ color: rgb(90, 69, 190);
/* oklch */ color: oklch(48.4% 0.181 285.4);
Tailwind
colors: {
  custom: {
    50: '#917ad2',
    500: '#5a45be',
    950: '#000000',
  },
}
SCSS
$custom: #5a45be;
$custom-light: #917ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45be",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 250.413,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48368,
    "c": 0.18105,
    "h": 285.4
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#5A45BE
secondary
#C1CA95
accent
#D850C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A45BE

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

Preview Lab → · Contrast checker → · Palette generator →

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