#5B42DB#5B42DB

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

Color values

HEX#5B42DB
RGBrgb(91, 66, 219)
HSLhsl(250, 68%, 56%)
HSVhsv(250, 70%, 86%)
CMYKcmyk(58.4%, 69.9%, 0%, 14.1%)
CIE-LABlab(39.97, 51.33, -74.59)
CIE-LCHlch(39.97, 90.55, 304.53°)
OKLaboklab(50.48% 0.0479 -0.2149)
OKLCHoklch(50.48% 0.22 282.6)
XYZxyz(19.0448, 11.2338, 68.1689)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42DB #C2DB42
analogous
#4275DB #5B42DB #A742DB
triadic
#5B42DB #DB5B42 #42DB5B
tetradic
#5B42DB #DB4275 #C2DB42 #42DBA7
square
#5B42DB #DB4275 #C2DB42 #42DBA7
split-complementary
#5B42DB #DBA742 #75DB42
monochromatic
#2C1A89 #3D24BC #5B42DB #8875E5 #B4A9EF

Accessibility & contrast

On white

6.47
#5B42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5B42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42DB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42DB#FFFFFF#000000##FFFFFF
##5B42DB1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b42db;
/* rgb */ color: rgb(91, 66, 219);
/* oklch */ color: oklch(50.5% 0.220 282.6);
Tailwind
colors: {
  custom: {
    50: '#9779e7',
    500: '#5b42db',
    950: '#000000',
  },
}
SCSS
$custom: #5b42db;
$custom-light: #9779e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42db",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 249.804,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50475,
    "c": 0.22015,
    "h": 282.6
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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