#5742BB#5742BB

#5742BB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.181 H 285.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5742BB
RGBrgb(87, 66, 187)
HSLhsl(250, 48%, 50%)
HSVhsv(250, 65%, 73%)
CMYKcmyk(53.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(36.95, 41.05, -60.99)
CIE-LCHlch(36.95, 73.51, 303.94°)
OKLaboklab(47.39% 0.0472 -0.1751)
OKLCHoklch(47.39% 0.181 285.1)
XYZxyz(14.8456, 9.5097, 48.0574)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742BB #A6BB42
analogous
#426ABB #5742BB #9342BB
triadic
#5742BB #BB5742 #42BB57
tetradic
#5742BB #BB426A #A6BB42 #42BB93
square
#5742BB #BB426A #A6BB42 #42BB93
split-complementary
#5742BB #BB9342 #6ABB42
monochromatic
#2D2261 #42328E #5742BB #7F6ECC #A79CDC

Accessibility & contrast

On white

7.24
#5742BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5742BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5742BB
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742BB#FFFFFF#000000##FFFFFF
##5742BB1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#2D6078
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5742bb;
/* rgb */ color: rgb(87, 66, 187);
/* oklch */ color: oklch(47.4% 0.181 285.1);
Tailwind
colors: {
  custom: {
    50: '#8f78d0',
    500: '#5742bb',
    950: '#000000',
  },
}
SCSS
$custom: #5742bb;
$custom-light: #8f78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5742bb",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 250.413,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47388,
    "c": 0.18133,
    "h": 285.1
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#5742BB
secondary
#BEC891
accent
#D750C0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5742BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5742BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva