#5A45C8#5A45C8

#5A45C8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.2% C 0.194 H 284.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5A45C8
RGBrgb(90, 69, 200)
HSLhsl(250, 54%, 53%)
HSVhsv(250, 66%, 78%)
CMYKcmyk(55%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.90, 43.79, -65.39)
CIE-LCHlch(38.90, 78.70, 303.81°)
OKLaboklab(49.19% 0.0469 -0.1879)
OKLCHoklch(49.19% 0.194 284)
XYZxyz(16.7667, 10.5991, 55.7947)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45C8 #B3C845
analogous
#4572C8 #5A45C8 #9B45C8
triadic
#5A45C8 #C85A45 #45C85A
tetradic
#5A45C8 #C84572 #B3C845 #45C89B
square
#5A45C8 #C84572 #B3C845 #45C89B
split-complementary
#5A45C8 #C89B45 #72C845
monochromatic
#2E2171 #422FA0 #5A45C8 #8474D6 #AEA3E4

Accessibility & contrast

On white

6.73
#5A45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5A45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45C8
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45C8#FFFFFF#000000##FFFFFF
##5A45C81.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#276680
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a45c8;
/* rgb */ color: rgb(90, 69, 200);
/* oklch */ color: oklch(49.2% 0.194 284.0);
Tailwind
colors: {
  custom: {
    50: '#937ada',
    500: '#5a45c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a45c8;
$custom-light: #937ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45c8",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 249.618,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.1937,
    "h": 284
  },
  "luminance": 0.106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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