#5B42DA#5B42DA

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

Color values

HEX#5B42DA
RGBrgb(91, 66, 218)
HSLhsl(250, 67%, 56%)
HSVhsv(250, 70%, 85%)
CMYKcmyk(58.3%, 69.7%, 0%, 14.5%)
CIE-LABlab(39.88, 51.03, -74.16)
CIE-LCHlch(39.88, 90.02, 304.53°)
OKLaboklab(50.39% 0.0481 -0.2136)
OKLCHoklch(50.39% 0.219 282.7)
XYZxyz(18.9136, 11.1813, 67.4776)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42DA #C1DA42
analogous
#4275DA #5B42DA #A742DA
triadic
#5B42DA #DA5B42 #42DA5B
tetradic
#5B42DA #DA4275 #C1DA42 #42DAA7
square
#5B42DA #DA4275 #C1DA42 #42DAA7
split-complementary
#5B42DA #DAA742 #75DA42
monochromatic
#2C1A87 #3D24BA #5B42DA #8775E4 #B4A8EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B42DA#FFFFFF#000000##FFFFFF
##5B42DA1.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)
#0063DF
Deuteranopia (green-blind)
#0059D7
Tritanopia (blue-blind)
#066B89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b42da;
/* rgb */ color: rgb(91, 66, 218);
/* oklch */ color: oklch(50.4% 0.219 282.7);
Tailwind
colors: {
  custom: {
    50: '#9679e7',
    500: '#5b42da',
    950: '#000000',
  },
}
SCSS
$custom: #5b42da;
$custom-light: #9679e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42da",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 249.868,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50386,
    "c": 0.21896,
    "h": 282.7
  },
  "luminance": 0.11183
}

Semantic roles & 50–950 ramp

primary
#5B42DA
secondary
#D1DB9C
accent
#EA3ECE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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