#5B42DD#5B42DD

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

Color values

HEX#5B42DD
RGBrgb(91, 66, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 70%, 87%)
CMYKcmyk(58.8%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.15, 51.92, -75.45)
CIE-LCHlch(40.15, 91.59, 304.53°)
OKLaboklab(50.65% 0.0476 -0.2174)
OKLCHoklch(50.65% 0.223 282.3)
XYZxyz(19.3097, 11.3397, 69.5639)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42DD #C4DD42
analogous
#4277DD #5B42DD #A842DD
triadic
#5B42DD #DD5B42 #42DD5B
tetradic
#5B42DD #DD4277 #C4DD42 #42DDA8
square
#5B42DD #DD4277 #C4DD42 #42DDA8
split-complementary
#5B42DD #DDA842 #77DD42
monochromatic
#2C198C #3C22BF #5B42DD #8876E6 #B5AAF0

Accessibility & contrast

On white

6.43
#5B42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5B42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42DD
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42DD#FFFFFF#000000##FFFFFF
##5B42DD1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b42dd;
/* rgb */ color: rgb(91, 66, 221);
/* oklch */ color: oklch(50.7% 0.223 282.3);
Tailwind
colors: {
  custom: {
    50: '#9779e9',
    500: '#5b42dd',
    950: '#000000',
  },
}
SCSS
$custom: #5b42dd;
$custom-light: #9779e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42dd",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 249.677,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50654,
    "c": 0.22252,
    "h": 282.3
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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