#5A45CF#5A45CF

#5A45CF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.8% C 0.202 H 283.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5A45CF
RGBrgb(90, 69, 207)
HSLhsl(249, 59%, 54%)
HSVhsv(249, 67%, 81%)
CMYKcmyk(56.5%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.47, 45.92, -68.52)
CIE-LCHlch(39.47, 82.48, 303.83°)
OKLaboklab(49.78% 0.046 -0.1971)
OKLCHoklch(49.78% 0.202 283.1)
XYZxyz(17.6036, 10.9338, 60.2022)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45CF #BACF45
analogous
#4575CF #5A45CF #9F45CF
triadic
#5A45CF #CF5A45 #45CF5A
tetradic
#5A45CF #CF4575 #BACF45 #45CF9F
square
#5A45CF #CF4575 #BACF45 #45CF9F
split-complementary
#5A45CF #CF9F45 #75CF45
monochromatic
#2D207A #3F2CAB #5A45CF #8576DC #B0A6E8

Accessibility & contrast

On white

6.59
#5A45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45CF
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45CF#FFFFFF#000000##FFFFFF
##5A45CF1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#1D6884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a45cf;
/* rgb */ color: rgb(90, 69, 207);
/* oklch */ color: oklch(49.8% 0.202 283.1);
Tailwind
colors: {
  custom: {
    50: '#947adf',
    500: '#5a45cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a45cf;
$custom-light: #947adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45cf",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 249.13,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49779,
    "c": 0.2024,
    "h": 283.1
  },
  "luminance": 0.10935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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