#5A45CC#5A45CC

#5A45CC is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.5% C 0.199 H 283.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5A45CC
RGBrgb(90, 69, 204)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.9%, 66.2%, 0%, 20%)
CIE-LABlab(39.22, 45.01, -67.18)
CIE-LCHlch(39.22, 80.87, 303.82°)
OKLaboklab(49.53% 0.0464 -0.1932)
OKLCHoklch(49.53% 0.199 283.5)
XYZxyz(17.2403, 10.7885, 58.2890)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CC #B7CC45
analogous
#4573CC #5A45CC #9D45CC
triadic
#5A45CC #CC5A45 #45CC5A
tetradic
#5A45CC #CC4573 #B7CC45 #45CC9D
square
#5A45CC #CC4573 #B7CC45 #45CC9D
split-complementary
#5A45CC #CC9D45 #73CC45
monochromatic
#2E2076 #402EA6 #5A45CC #8575D9 #AFA5E6

Accessibility & contrast

On white

6.65
#5A45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5A45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CC#FFFFFF#000000##FFFFFF
##5A45CC1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#226783
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a45cc;
/* rgb */ color: rgb(90, 69, 204);
/* oklch */ color: oklch(49.5% 0.199 283.5);
Tailwind
colors: {
  custom: {
    50: '#937add',
    500: '#5a45cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a45cc;
$custom-light: #937add;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45cc",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 249.333,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49525,
    "c": 0.19868,
    "h": 283.5
  },
  "luminance": 0.1079
}

Semantic roles & 50–950 ramp

primary
#5A45CC
secondary
#CAD399
accent
#E048C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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