#5B42E2#5B42E2

#5B42E2 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 51.1% C 0.228 H 281.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5B42E2
RGBrgb(91, 66, 226)
HSLhsl(249, 73%, 57%)
HSVhsv(249, 71%, 89%)
CMYKcmyk(59.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.59, 53.40, -77.58)
CIE-LCHlch(40.59, 94.18, 304.54°)
OKLaboklab(51.1% 0.0466 -0.2236)
OKLCHoklch(51.1% 0.228 281.8)
XYZxyz(19.9858, 11.6102, 73.1246)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42E2 #C9E242
analogous
#4279E2 #5B42E2 #AB42E2
triadic
#5B42E2 #E25B42 #42E25B
tetradic
#5B42E2 #E24279 #C9E242 #42E2AB
square
#5B42E2 #E24279 #C9E242 #42E2AB
split-complementary
#5B42E2 #E2AB42 #79E242
monochromatic
#2A1793 #391FC8 #5B42E2 #8977EA #B7ACF2

Accessibility & contrast

On white

6.32
#5B42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42E2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42E2#FFFFFF#000000##FFFFFF
##5B42E21.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b42e2;
/* rgb */ color: rgb(91, 66, 226);
/* oklch */ color: oklch(51.1% 0.228 281.8);
Tailwind
colors: {
  custom: {
    50: '#9879ec',
    500: '#5b42e2',
    950: '#000000',
  },
}
SCSS
$custom: #5b42e2;
$custom-light: #9879ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42e2",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 249.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51104,
    "c": 0.22842,
    "h": 281.8
  },
  "luminance": 0.11612
}

Semantic roles & 50–950 ramp

primary
#5B42E2
secondary
#D6E09F
accent
#F038D3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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