#5C42E4#5C42E4

#5C42E4 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.4% C 0.231 H 281.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5C42E4
RGBrgb(92, 66, 228)
HSLhsl(250, 75%, 58%)
HSVhsv(250, 71%, 89%)
CMYKcmyk(59.6%, 71.1%, 0%, 10.6%)
CIE-LABlab(40.85, 54.13, -78.28)
CIE-LCHlch(40.85, 95.17, 304.66°)
OKLaboklab(51.37% 0.0476 -0.2256)
OKLCHoklch(51.37% 0.231 281.9)
XYZxyz(20.3611, 11.7718, 74.5830)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42E4 #CAE442
analogous
#4279E4 #5C42E4 #AD42E4
triadic
#5C42E4 #E45C42 #42E45C
tetradic
#5C42E4 #E44279 #CAE442 #42E4AD
square
#5C42E4 #E44279 #CAE442 #42E4AD
split-complementary
#5C42E4 #E4AD42 #79E442
monochromatic
#2A1596 #391DCC #5C42E4 #8A78EC #B8ADF3

Accessibility & contrast

On white

6.26
#5C42E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5C42E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42E4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42E4#FFFFFF#000000##FFFFFF
##5C42E41.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E9
Deuteranopia (green-blind)
#005AE1
Tritanopia (blue-blind)
#006E8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5c42e4;
/* rgb */ color: rgb(92, 66, 228);
/* oklch */ color: oklch(51.4% 0.231 281.9);
Tailwind
colors: {
  custom: {
    50: '#9979ee',
    500: '#5c42e4',
    950: '#000000',
  },
}
SCSS
$custom: #5c42e4;
$custom-light: #9979ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42e4",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 249.63,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51365,
    "c": 0.2306,
    "h": 281.9
  },
  "luminance": 0.11773
}

Semantic roles & 50–950 ramp

primary
#5C42E4
secondary
#D7E2A0
accent
#F236D4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5C42E4

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

Preview Lab → · Contrast checker → · Palette generator →

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