#5A45C9#5A45C9

#5A45C9 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.3% C 0.195 H 283.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5A45C9
RGBrgb(90, 69, 201)
HSLhsl(250, 55%, 53%)
HSVhsv(250, 66%, 79%)
CMYKcmyk(55.2%, 65.7%, 0%, 21.2%)
CIE-LABlab(38.98, 44.10, -65.84)
CIE-LCHlch(38.98, 79.25, 303.81°)
OKLaboklab(49.27% 0.0468 -0.1892)
OKLCHoklch(49.27% 0.195 283.9)
XYZxyz(16.8840, 10.6459, 56.4122)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45C9 #B4C945
analogous
#4572C9 #5A45C9 #9C45C9
triadic
#5A45C9 #C95A45 #45C95A
tetradic
#5A45C9 #C94572 #B4C945 #45C99C
square
#5A45C9 #C94572 #B4C945 #45C99C
split-complementary
#5A45C9 #C99C45 #72C945
monochromatic
#2E2172 #412FA2 #5A45C9 #8474D7 #AEA4E5

Accessibility & contrast

On white

6.71
#5A45C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5A45C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45C9
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45C9#FFFFFF#000000##FFFFFF
##5A45C91.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#266681
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a45c9;
/* rgb */ color: rgb(90, 69, 201);
/* oklch */ color: oklch(49.3% 0.195 283.9);
Tailwind
colors: {
  custom: {
    50: '#937ada',
    500: '#5a45c9',
    950: '#000000',
  },
}
SCSS
$custom: #5a45c9;
$custom-light: #937ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45c9",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 249.545,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49273,
    "c": 0.19495,
    "h": 283.9
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#5A45C9
secondary
#C8D198
accent
#DE49C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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