#5A42DB#5A42DB

#5A42DB is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.4% C 0.220 H 282.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5A42DB
RGBrgb(90, 66, 219)
HSLhsl(249, 68%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(58.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(39.89, 51.19, -74.73)
CIE-LCHlch(39.89, 90.58, 304.41°)
OKLaboklab(50.39% 0.0466 -0.2153)
OKLCHoklch(50.39% 0.22 282.2)
XYZxyz(18.9469, 11.1833, 68.1643)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42DB #C3DB42
analogous
#4276DB #5A42DB #A642DB
triadic
#5A42DB #DB5A42 #42DB5A
tetradic
#5A42DB #DB4276 #C3DB42 #42DBA6
square
#5A42DB #DB4276 #C3DB42 #42DBA6
split-complementary
#5A42DB #DBA642 #76DB42
monochromatic
#2B1A89 #3C24BC #5A42DB #8775E5 #B4A9EF

Accessibility & contrast

On white

6.49
#5A42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5A42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42DB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42DB#FFFFFF#000000##FFFFFF
##5A42DB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a42db;
/* rgb */ color: rgb(90, 66, 219);
/* oklch */ color: oklch(50.4% 0.220 282.2);
Tailwind
colors: {
  custom: {
    50: '#9679e7',
    500: '#5a42db',
    950: '#000000',
  },
}
SCSS
$custom: #5a42db;
$custom-light: #9679e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42db",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 249.412,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50394,
    "c": 0.22029,
    "h": 282.2
  },
  "luminance": 0.11185
}

Semantic roles & 50–950 ramp

primary
#5A42DB
secondary
#D2DC9D
accent
#EB3DD0
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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