#5A42EA#5A42EA

#5A42EA is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.8% C 0.238 H 280.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5A42EA
RGBrgb(90, 66, 234)
HSLhsl(249, 80%, 59%)
HSVhsv(249, 72%, 92%)
CMYKcmyk(61.5%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.23, 55.64, -81.07)
CIE-LCHlch(41.23, 98.33, 304.46°)
OKLaboklab(51.76% 0.0437 -0.2338)
OKLCHoklch(51.76% 0.238 280.6)
XYZxyz(21.0113, 12.0090, 79.0367)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42EA #D2EA42
analogous
#427EEA #5A42EA #AE42EA
triadic
#5A42EA #EA5A42 #42EA5A
tetradic
#5A42EA #EA427E #D2EA42 #42EAAE
square
#5A42EA #EA427E #D2EA42 #42EAAE
split-complementary
#5A42EA #EAAE42 #7EEA42
monochromatic
#2612A0 #3318D7 #5A42EA #8A79F0 #BAB0F6

Accessibility & contrast

On white

6.17
#5A42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5A42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42EA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42EA#FFFFFF#000000##FFFFFF
##5A42EA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EF
Deuteranopia (green-blind)
#005BE7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a42ea;
/* rgb */ color: rgb(90, 66, 234);
/* oklch */ color: oklch(51.8% 0.238 280.6);
Tailwind
colors: {
  custom: {
    50: '#9979f2',
    500: '#5a42ea',
    950: '#000000',
  },
}
SCSS
$custom: #5a42ea;
$custom-light: #9979f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42ea",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 248.571,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51758,
    "c": 0.2379,
    "h": 280.6
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#5A42EA
secondary
#DCE5A3
accent
#F631DA
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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