#5A45CA#5A45CA

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

Color values

HEX#5A45CA
RGBrgb(90, 69, 202)
HSLhsl(249, 56%, 53%)
HSVhsv(249, 66%, 79%)
CMYKcmyk(55.4%, 65.8%, 0%, 20.8%)
CIE-LABlab(39.06, 44.40, -66.29)
CIE-LCHlch(39.06, 79.79, 303.81°)
OKLaboklab(49.36% 0.0467 -0.1906)
OKLCHoklch(49.36% 0.196 283.8)
XYZxyz(17.0020, 10.6932, 57.0338)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CA #B5CA45
analogous
#4572CA #5A45CA #9D45CA
triadic
#5A45CA #CA5A45 #45CA5A
tetradic
#5A45CA #CA4572 #B5CA45 #45CA9D
square
#5A45CA #CA4572 #B5CA45 #45CA9D
split-complementary
#5A45CA #CA9D45 #72CA45
monochromatic
#2E2174 #412FA3 #5A45CA #8475D8 #AFA4E5

Accessibility & contrast

On white

6.69
#5A45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CA#FFFFFF#000000##FFFFFF
##5A45CA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#256781
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a45ca;
/* rgb */ color: rgb(90, 69, 202);
/* oklch */ color: oklch(49.4% 0.196 283.8);
Tailwind
colors: {
  custom: {
    50: '#937adb',
    500: '#5a45ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a45ca;
$custom-light: #937adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45ca",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 249.474,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49357,
    "c": 0.19619,
    "h": 283.8
  },
  "luminance": 0.10694
}

Semantic roles & 50–950 ramp

primary
#5A45CA
secondary
#C9D299
accent
#DF49C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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