#5A42E0#5A42E0

#5A42E0 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.8% C 0.226 H 281.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5A42E0
RGBrgb(90, 66, 224)
HSLhsl(249, 72%, 57%)
HSVhsv(249, 71%, 88%)
CMYKcmyk(59.8%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.33, 52.68, -76.87)
CIE-LCHlch(40.33, 93.18, 304.42°)
OKLaboklab(50.84% 0.0457 -0.2216)
OKLCHoklch(50.84% 0.226 281.6)
XYZxyz(19.6150, 11.4505, 71.6831)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42E0 #C8E042
analogous
#4279E0 #5A42E0 #A942E0
triadic
#5A42E0 #E05A42 #42E05A
tetradic
#5A42E0 #E04279 #C8E042 #42E0A9
square
#5A42E0 #E04279 #C8E042 #42E0A9
split-complementary
#5A42E0 #E0A942 #79E042
monochromatic
#2A1890 #3920C5 #5A42E0 #8877E9 #B6ABF1

Accessibility & contrast

On white

6.38
#5A42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5A42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42E0
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42E0#FFFFFF#000000##FFFFFF
##5A42E01.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E5
Deuteranopia (green-blind)
#0059DD
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a42e0;
/* rgb */ color: rgb(90, 66, 224);
/* oklch */ color: oklch(50.8% 0.226 281.6);
Tailwind
colors: {
  custom: {
    50: '#9779eb',
    500: '#5a42e0',
    950: '#000000',
  },
}
SCSS
$custom: #5a42e0;
$custom-light: #9779eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42e0",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 249.114,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50844,
    "c": 0.22622,
    "h": 281.6
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

primary
#5A42E0
secondary
#D5DF9F
accent
#EF39D3
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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