#5B42EA#5B42EA

#5B42EA is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.8% C 0.238 H 280.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5B42EA
RGBrgb(91, 66, 234)
HSLhsl(249, 80%, 59%)
HSVhsv(249, 72%, 92%)
CMYKcmyk(61.1%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.31, 55.77, -80.94)
CIE-LCHlch(41.31, 98.29, 304.57°)
OKLaboklab(51.84% 0.0451 -0.2334)
OKLCHoklch(51.84% 0.238 280.9)
XYZxyz(21.1092, 12.0595, 79.0413)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42EA #D1EA42
analogous
#427DEA #5B42EA #AF42EA
triadic
#5B42EA #EA5B42 #42EA5B
tetradic
#5B42EA #EA427D #D1EA42 #42EAAF
square
#5B42EA #EA427D #D1EA42 #42EAAF
split-complementary
#5B42EA #EAAF42 #7DEA42
monochromatic
#2712A0 #3418D7 #5B42EA #8B79F0 #BBB0F6

Accessibility & contrast

On white

6.15
#5B42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5B42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42EA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42EA#FFFFFF#000000##FFFFFF
##5B42EA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EF
Deuteranopia (green-blind)
#005BE7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b42ea;
/* rgb */ color: rgb(91, 66, 234);
/* oklch */ color: oklch(51.8% 0.238 280.9);
Tailwind
colors: {
  custom: {
    50: '#9979f2',
    500: '#5b42ea',
    950: '#000000',
  },
}
SCSS
$custom: #5b42ea;
$custom-light: #9979f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42ea",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 248.929,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51835,
    "c": 0.23774,
    "h": 280.9
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#5B42EA
secondary
#DBE5A3
accent
#F631D9
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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