#5A42E2#5A42E2

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

Color values

HEX#5A42E2
RGBrgb(90, 66, 226)
HSLhsl(249, 73%, 57%)
HSVhsv(249, 71%, 89%)
CMYKcmyk(60.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.51, 53.27, -77.71)
CIE-LCHlch(40.51, 94.22, 304.43°)
OKLaboklab(51.03% 0.0453 -0.224)
OKLCHoklch(51.03% 0.229 281.4)
XYZxyz(19.8878, 11.5597, 73.1200)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42E2 #CAE242
analogous
#427AE2 #5A42E2 #AA42E2
triadic
#5A42E2 #E25A42 #42E25A
tetradic
#5A42E2 #E2427A #CAE242 #42E2AA
square
#5A42E2 #E2427A #CAE242 #42E2AA
split-complementary
#5A42E2 #E2AA42 #7AE242
monochromatic
#291793 #381FC8 #5A42E2 #8877EA #B7ACF2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A42E2#FFFFFF#000000##FFFFFF
##5A42E21.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)
#0065E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a42e2;
/* rgb */ color: rgb(90, 66, 226);
/* oklch */ color: oklch(51.0% 0.229 281.4);
Tailwind
colors: {
  custom: {
    50: '#9779ec',
    500: '#5a42e2',
    950: '#000000',
  },
}
SCSS
$custom: #5a42e2;
$custom-light: #9779ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42e2",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 249,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.22857,
    "h": 281.4
  },
  "luminance": 0.11561
}

Semantic roles & 50–950 ramp

primary
#5A42E2
secondary
#D7E09F
accent
#F038D4
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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