#5C45E8#5C45E8

#5C45E8 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.1% C 0.232 H 281.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5C45E8
RGBrgb(92, 69, 232)
HSLhsl(248, 78%, 59%)
HSVhsv(248, 70%, 91%)
CMYKcmyk(60.3%, 70.3%, 0%, 9%)
CIE-LABlab(41.78, 53.73, -79.03)
CIE-LCHlch(41.78, 95.57, 304.21°)
OKLaboklab(52.13% 0.0447 -0.2278)
OKLCHoklch(52.13% 0.232 281.1)
XYZxyz(21.1027, 12.3562, 77.6012)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C45E8 #D1E845
analogous
#4580E8 #5C45E8 #AD45E8
triadic
#5C45E8 #E85C45 #45E85C
tetradic
#5C45E8 #E84580 #D1E845 #45E8AD
square
#5C45E8 #E84580 #D1E845 #45E8AD
split-complementary
#5C45E8 #E8AD45 #80E845
monochromatic
#27149F #351AD5 #5C45E8 #8C7BEF #BBB2F5

Accessibility & contrast

On white

6.05
#5C45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5C45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C45E8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C45E8#FFFFFF#000000##FFFFFF
##5C45E81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068ED
Deuteranopia (green-blind)
#005DE5
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5c45e8;
/* rgb */ color: rgb(92, 69, 232);
/* oklch */ color: oklch(52.1% 0.232 281.1);
Tailwind
colors: {
  custom: {
    50: '#997bf1',
    500: '#5c45e8',
    950: '#000000',
  },
}
SCSS
$custom: #5c45e8;
$custom-light: #997bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c45e8",
  "rgb": {
    "r": 92,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 248.466,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52132,
    "c": 0.23219,
    "h": 281.1
  },
  "luminance": 0.12358
}

Semantic roles & 50–950 ramp

primary
#5C45E8
secondary
#DBE4A4
accent
#F433D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5C45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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