#5C45E6#5C45E6

#5C45E6 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 52.0% C 0.230 H 281.3°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5C45E6
RGBrgb(92, 69, 230)
HSLhsl(249, 76%, 59%)
HSVhsv(249, 70%, 90%)
CMYKcmyk(60%, 70%, 0%, 9.8%)
CIE-LABlab(41.60, 53.13, -78.19)
CIE-LCHlch(41.60, 94.53, 304.20°)
OKLaboklab(51.95% 0.0451 -0.2254)
OKLCHoklch(51.95% 0.23 281.3)
XYZxyz(20.8202, 12.2432, 76.1136)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C45E6 #CFE645
analogous
#457EE6 #5C45E6 #AC45E6
triadic
#5C45E6 #E65C45 #45E65C
tetradic
#5C45E6 #E6457E #CFE645 #45E6AC
square
#5C45E6 #E6457E #CFE645 #45E6AC
split-complementary
#5C45E6 #E6AC45 #7EE645
monochromatic
#28159C #361CD2 #5C45E6 #8B7BED #BBB1F5

Accessibility & contrast

On white

6.09
#5C45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5C45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C45E6
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C45E6#FFFFFF#000000##FFFFFF
##5C45E61.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005CE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5c45e6;
/* rgb */ color: rgb(92, 69, 230);
/* oklch */ color: oklch(52.0% 0.230 281.3);
Tailwind
colors: {
  custom: {
    50: '#997bef',
    500: '#5c45e6',
    950: '#000000',
  },
}
SCSS
$custom: #5c45e6;
$custom-light: #997bef;
$custom-dark: #000000;
JSON
{
  "hex": "#5c45e6",
  "rgb": {
    "r": 92,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 248.571,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.22984,
    "h": 281.3
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#5C45E6
secondary
#DAE3A4
accent
#F335D8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5C45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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