#5A45CE#5A45CE

#5A45CE is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.7% C 0.201 H 283.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5A45CE
RGBrgb(90, 69, 206)
HSLhsl(249, 58%, 54%)
HSVhsv(249, 67%, 81%)
CMYKcmyk(56.3%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.39, 45.62, -68.07)
CIE-LCHlch(39.39, 81.94, 303.83°)
OKLaboklab(49.69% 0.0462 -0.1958)
OKLCHoklch(49.69% 0.201 283.3)
XYZxyz(17.4817, 10.8851, 59.5604)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CE #B9CE45
analogous
#4575CE #5A45CE #9F45CE
triadic
#5A45CE #CE5A45 #45CE5A
tetradic
#5A45CE #CE4575 #B9CE45 #45CE9F
square
#5A45CE #CE4575 #B9CE45 #45CE9F
split-complementary
#5A45CE #CE9F45 #75CE45
monochromatic
#2D2079 #402DA9 #5A45CE #8575DB #B0A6E8

Accessibility & contrast

On white

6.61
#5A45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5A45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CE
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CE#FFFFFF#000000##FFFFFF
##5A45CE1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#1F6884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a45ce;
/* rgb */ color: rgb(90, 69, 206);
/* oklch */ color: oklch(49.7% 0.201 283.3);
Tailwind
colors: {
  custom: {
    50: '#947ade',
    500: '#5a45ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a45ce;
$custom-light: #947ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45ce",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 249.197,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49694,
    "c": 0.20116,
    "h": 283.3
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#5A45CE
secondary
#CCD59A
accent
#E246CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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