#5A45CD#5A45CD

#5A45CD is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.6% C 0.200 H 283.4°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5A45CD
RGBrgb(90, 69, 205)
HSLhsl(249, 58%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(56.1%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.30, 45.31, -67.63)
CIE-LCHlch(39.30, 81.41, 303.82°)
OKLaboklab(49.61% 0.0463 -0.1945)
OKLCHoklch(49.61% 0.2 283.4)
XYZxyz(17.3606, 10.8366, 58.9226)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CD #B8CD45
analogous
#4574CD #5A45CD #9E45CD
triadic
#5A45CD #CD5A45 #45CD5A
tetradic
#5A45CD #CD4574 #B8CD45 #45CD9E
square
#5A45CD #CD4574 #B8CD45 #45CD9E
split-complementary
#5A45CD #CD9E45 #74CD45
monochromatic
#2E2077 #402DA8 #5A45CD #8575DA #B0A5E7

Accessibility & contrast

On white

6.63
#5A45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5A45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CD
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CD#FFFFFF#000000##FFFFFF
##5A45CD1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#206883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a45cd;
/* rgb */ color: rgb(90, 69, 205);
/* oklch */ color: oklch(49.6% 0.200 283.4);
Tailwind
colors: {
  custom: {
    50: '#947add',
    500: '#5a45cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a45cd;
$custom-light: #947add;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45cd",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 249.265,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.4961,
    "c": 0.19993,
    "h": 283.4
  },
  "luminance": 0.10838
}

Semantic roles & 50–950 ramp

primary
#5A45CD
secondary
#CBD49A
accent
#E147C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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