#5B42DC#5B42DC

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

Color values

HEX#5B42DC
RGBrgb(91, 66, 220)
HSLhsl(250, 69%, 56%)
HSVhsv(250, 70%, 86%)
CMYKcmyk(58.6%, 70%, 0%, 13.7%)
CIE-LABlab(40.06, 51.62, -75.02)
CIE-LCHlch(40.06, 91.07, 304.53°)
OKLaboklab(50.56% 0.0478 -0.2161)
OKLCHoklch(50.56% 0.221 282.5)
XYZxyz(19.1769, 11.2866, 68.8643)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42DC #C3DC42
analogous
#4276DC #5B42DC #A842DC
triadic
#5B42DC #DC5B42 #42DC5B
tetradic
#5B42DC #DC4276 #C3DC42 #42DCA8
square
#5B42DC #DC4276 #C3DC42 #42DCA8
split-complementary
#5B42DC #DCA842 #76DC42
monochromatic
#2C1A8A #3C23BE #5B42DC #8876E6 #B5A9EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B42DC#FFFFFF#000000##FFFFFF
##5B42DC1.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)
#0063E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b42dc;
/* rgb */ color: rgb(91, 66, 220);
/* oklch */ color: oklch(50.6% 0.221 282.5);
Tailwind
colors: {
  custom: {
    50: '#9779e8',
    500: '#5b42dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b42dc;
$custom-light: #9779e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42dc",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 249.74,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50564,
    "c": 0.22134,
    "h": 282.5
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#5B42DC
secondary
#D2DD9D
accent
#EC3CCF
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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