#5A42DC#5A42DC

#5A42DC is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.5% C 0.221 H 282.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5A42DC
RGBrgb(90, 66, 220)
HSLhsl(249, 69%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(59.1%, 70%, 0%, 13.7%)
CIE-LABlab(39.98, 51.48, -75.16)
CIE-LCHlch(39.98, 91.10, 304.41°)
OKLaboklab(50.48% 0.0464 -0.2166)
OKLCHoklch(50.48% 0.221 282.1)
XYZxyz(19.0789, 11.2361, 68.8597)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42DC #C4DC42
analogous
#4277DC #5A42DC #A742DC
triadic
#5A42DC #DC5A42 #42DC5A
tetradic
#5A42DC #DC4277 #C4DC42 #42DCA7
square
#5A42DC #DC4277 #C4DC42 #42DCA7
split-complementary
#5A42DC #DCA742 #77DC42
monochromatic
#2B1A8A #3B23BE #5A42DC #8776E6 #B4A9EF

Accessibility & contrast

On white

6.47
#5A42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5A42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42DC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42DC#FFFFFF#000000##FFFFFF
##5A42DC1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a42dc;
/* rgb */ color: rgb(90, 66, 220);
/* oklch */ color: oklch(50.5% 0.221 282.1);
Tailwind
colors: {
  custom: {
    50: '#9679e8',
    500: '#5a42dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a42dc;
$custom-light: #9679e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42dc",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 249.351,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50484,
    "c": 0.22148,
    "h": 282.1
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#5A42DC
secondary
#D3DD9D
accent
#EC3CD0
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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