#5C42E0#5C42E0

#5C42E0 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 51.0% C 0.226 H 282.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5C42E0
RGBrgb(92, 66, 224)
HSLhsl(250, 72%, 57%)
HSVhsv(250, 71%, 88%)
CMYKcmyk(58.9%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.50, 52.95, -76.59)
CIE-LCHlch(40.50, 93.11, 304.66°)
OKLaboklab(51% 0.0483 -0.2207)
OKLCHoklch(51% 0.226 282.4)
XYZxyz(19.8122, 11.5522, 71.6923)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42E0 #C6E042
analogous
#4277E0 #5C42E0 #AB42E0
triadic
#5C42E0 #E05C42 #42E05C
tetradic
#5C42E0 #E04277 #C6E042 #42E0AB
square
#5C42E0 #E04277 #C6E042 #42E0AB
split-complementary
#5C42E0 #E0AB42 #77E042
monochromatic
#2B1890 #3B20C5 #5C42E0 #8977E9 #B7ABF1

Accessibility & contrast

On white

6.34
#5C42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5C42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42E0
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42E0#FFFFFF#000000##FFFFFF
##5C42E01.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#005ADD
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5c42e0;
/* rgb */ color: rgb(92, 66, 224);
/* oklch */ color: oklch(51.0% 0.226 282.4);
Tailwind
colors: {
  custom: {
    50: '#9879eb',
    500: '#5c42e0',
    950: '#000000',
  },
}
SCSS
$custom: #5c42e0;
$custom-light: #9879eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42e0",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 249.873,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51004,
    "c": 0.22591,
    "h": 282.4
  },
  "luminance": 0.11554
}

Semantic roles & 50–950 ramp

primary
#5C42E0
secondary
#D5DF9F
accent
#EF39D1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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