#5B42BB#5B42BB

#5B42BB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.181 H 286.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5B42BB
RGBrgb(91, 66, 187)
HSLhsl(252, 48%, 50%)
HSVhsv(252, 65%, 73%)
CMYKcmyk(51.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.31, 41.78, -60.38)
CIE-LCHlch(37.31, 73.42, 304.68°)
OKLaboklab(47.74% 0.0526 -0.1732)
OKLCHoklch(47.74% 0.181 286.9)
XYZxyz(15.2296, 9.7077, 48.0754)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42BB #A2BB42
analogous
#4265BB #5B42BB #9842BB
triadic
#5B42BB #BB5B42 #42BB5B
tetradic
#5B42BB #BB4265 #A2BB42 #42BB98
square
#5B42BB #BB4265 #A2BB42 #42BB98
split-complementary
#5B42BB #BB9842 #65BB42
monochromatic
#2F2261 #45328E #5B42BB #826ECC #A99CDC

Accessibility & contrast

On white

7.14
#5B42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B42BB
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42BB#FFFFFF#000000##FFFFFF
##5B42BB1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#376078
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b42bb;
/* rgb */ color: rgb(91, 66, 187);
/* oklch */ color: oklch(47.7% 0.181 286.9);
Tailwind
colors: {
  custom: {
    50: '#9278d0',
    500: '#5b42bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b42bb;
$custom-light: #9278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42bb",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 252.397,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.18098,
    "h": 286.9
  },
  "luminance": 0.09708
}

Semantic roles & 50–950 ramp

primary
#5B42BB
secondary
#BDC891
accent
#D750BC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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