#5C42E2#5C42E2

#5C42E2 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.2% C 0.228 H 282.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5C42E2
RGBrgb(92, 66, 226)
HSLhsl(250, 73%, 57%)
HSVhsv(250, 71%, 89%)
CMYKcmyk(59.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.67, 53.54, -77.44)
CIE-LCHlch(40.67, 94.14, 304.66°)
OKLaboklab(51.18% 0.048 -0.2232)
OKLCHoklch(51.18% 0.228 282.1)
XYZxyz(20.0850, 11.6613, 73.1292)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42E2 #C8E242
analogous
#4278E2 #5C42E2 #AC42E2
triadic
#5C42E2 #E25C42 #42E25C
tetradic
#5C42E2 #E24278 #C8E242 #42E2AC
square
#5C42E2 #E24278 #C8E242 #42E2AC
split-complementary
#5C42E2 #E2AC42 #78E242
monochromatic
#2B1793 #3A1FC8 #5C42E2 #8A77EA #B8ACF2

Accessibility & contrast

On white

6.30
#5C42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5C42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42E2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42E2#FFFFFF#000000##FFFFFF
##5C42E21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5c42e2;
/* rgb */ color: rgb(92, 66, 226);
/* oklch */ color: oklch(51.2% 0.228 282.1);
Tailwind
colors: {
  custom: {
    50: '#9879ec',
    500: '#5c42e2',
    950: '#000000',
  },
}
SCSS
$custom: #5c42e2;
$custom-light: #9879ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42e2",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 249.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51184,
    "c": 0.22827,
    "h": 282.1
  },
  "luminance": 0.11663
}

Semantic roles & 50–950 ramp

primary
#5C42E2
secondary
#D6E09F
accent
#F038D2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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