#5A42DD#5A42DD

#5A42DD is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.6% C 0.223 H 282.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5A42DD
RGBrgb(90, 66, 221)
HSLhsl(249, 70%, 56%)
HSVhsv(249, 70%, 87%)
CMYKcmyk(59.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.06, 51.78, -75.59)
CIE-LCHlch(40.06, 91.63, 304.41°)
OKLaboklab(50.57% 0.0462 -0.2178)
OKLCHoklch(50.57% 0.223 282)
XYZxyz(19.2117, 11.2892, 69.5593)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42DD #C5DD42
analogous
#4278DD #5A42DD #A842DD
triadic
#5A42DD #DD5A42 #42DD5A
tetradic
#5A42DD #DD4278 #C5DD42 #42DDA8
square
#5A42DD #DD4278 #C5DD42 #42DDA8
split-complementary
#5A42DD #DDA842 #78DD42
monochromatic
#2B198C #3B22BF #5A42DD #8776E6 #B5AAF0

Accessibility & contrast

On white

6.45
#5A42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5A42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42DD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42DD#FFFFFF#000000##FFFFFF
##5A42DD1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#0059DA
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a42dd;
/* rgb */ color: rgb(90, 66, 221);
/* oklch */ color: oklch(50.6% 0.223 282.0);
Tailwind
colors: {
  custom: {
    50: '#9679e9',
    500: '#5a42dd',
    950: '#000000',
  },
}
SCSS
$custom: #5a42dd;
$custom-light: #9679e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42dd",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 249.29,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50574,
    "c": 0.22267,
    "h": 282
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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