#5A45CB#5A45CB

#5A45CB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.4% C 0.197 H 283.6°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5A45CB
RGBrgb(90, 69, 203)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.7%, 66%, 0%, 20.4%)
CIE-LABlab(39.14, 44.71, -66.74)
CIE-LCHlch(39.14, 80.33, 303.82°)
OKLaboklab(49.44% 0.0466 -0.1919)
OKLCHoklch(49.44% 0.197 283.6)
XYZxyz(17.1208, 10.7407, 57.6593)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CB #B6CB45
analogous
#4573CB #5A45CB #9D45CB
triadic
#5A45CB #CB5A45 #45CB5A
tetradic
#5A45CB #CB4573 #B6CB45 #45CB9D
square
#5A45CB #CB4573 #B6CB45 #45CB9D
split-complementary
#5A45CB #CB9D45 #73CB45
monochromatic
#2E2175 #412EA5 #5A45CB #8475D8 #AFA5E6

Accessibility & contrast

On white

6.67
#5A45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CB#FFFFFF#000000##FFFFFF
##5A45CB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#236782
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a45cb;
/* rgb */ color: rgb(90, 69, 203);
/* oklch */ color: oklch(49.4% 0.197 283.6);
Tailwind
colors: {
  custom: {
    50: '#937adc',
    500: '#5a45cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a45cb;
$custom-light: #937adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45cb",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 249.403,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.19744,
    "h": 283.6
  },
  "luminance": 0.10742
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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