#5B42E0#5B42E0

#5B42E0 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.9% C 0.226 H 282.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5B42E0
RGBrgb(91, 66, 224)
HSLhsl(249, 72%, 57%)
HSVhsv(249, 71%, 88%)
CMYKcmyk(59.4%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.41, 52.81, -76.73)
CIE-LCHlch(40.41, 93.15, 304.54°)
OKLaboklab(50.92% 0.047 -0.2211)
OKLCHoklch(50.92% 0.226 282)
XYZxyz(19.7129, 11.5010, 71.6877)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42E0 #C7E042
analogous
#4278E0 #5B42E0 #AA42E0
triadic
#5B42E0 #E05B42 #42E05B
tetradic
#5B42E0 #E04278 #C7E042 #42E0AA
square
#5B42E0 #E04278 #C7E042 #42E0AA
split-complementary
#5B42E0 #E0AA42 #78E042
monochromatic
#2B1890 #3A20C5 #5B42E0 #8977E9 #B6ABF1

Accessibility & contrast

On white

6.36
#5B42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5B42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42E0
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42E0#FFFFFF#000000##FFFFFF
##5B42E01.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E5
Deuteranopia (green-blind)
#005ADD
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b42e0;
/* rgb */ color: rgb(91, 66, 224);
/* oklch */ color: oklch(50.9% 0.226 282.0);
Tailwind
colors: {
  custom: {
    50: '#9779eb',
    500: '#5b42e0',
    950: '#000000',
  },
}
SCSS
$custom: #5b42e0;
$custom-light: #9779eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42e0",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 249.494,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.50923,
    "c": 0.22606,
    "h": 282
  },
  "luminance": 0.11502
}

Semantic roles & 50–950 ramp

primary
#5B42E0
secondary
#D5DF9F
accent
#EF39D2
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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