#5A42DA#5A42DA

#5A42DA is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.219 H 282.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5A42DA
RGBrgb(90, 66, 218)
HSLhsl(249, 67%, 56%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(58.7%, 69.7%, 0%, 14.5%)
CIE-LABlab(39.80, 50.89, -74.30)
CIE-LCHlch(39.80, 90.06, 304.41°)
OKLaboklab(50.31% 0.0468 -0.2141)
OKLCHoklch(50.31% 0.219 282.3)
XYZxyz(18.8156, 11.1308, 67.4730)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42DA #C2DA42
analogous
#4276DA #5A42DA #A642DA
triadic
#5A42DA #DA5A42 #42DA5A
tetradic
#5A42DA #DA4276 #C2DA42 #42DAA6
square
#5A42DA #DA4276 #C2DA42 #42DAA6
split-complementary
#5A42DA #DAA642 #76DA42
monochromatic
#2C1A87 #3C24BA #5A42DA #8775E4 #B3A8EE

Accessibility & contrast

On white

6.51
#5A42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42DA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42DA#FFFFFF#000000##FFFFFF
##5A42DA1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#0058D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a42da;
/* rgb */ color: rgb(90, 66, 218);
/* oklch */ color: oklch(50.3% 0.219 282.3);
Tailwind
colors: {
  custom: {
    50: '#9679e7',
    500: '#5a42da',
    950: '#000000',
  },
}
SCSS
$custom: #5a42da;
$custom-light: #9679e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42da",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 249.474,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50305,
    "c": 0.21911,
    "h": 282.3
  },
  "luminance": 0.11132
}

Semantic roles & 50–950 ramp

primary
#5A42DA
secondary
#D2DB9C
accent
#EA3ECF
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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