#5742BF#5742BF

#5742BF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.186 H 284.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5742BF
RGBrgb(87, 66, 191)
HSLhsl(250, 49%, 50%)
HSVhsv(250, 65%, 75%)
CMYKcmyk(54.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(37.27, 42.27, -62.81)
CIE-LCHlch(37.27, 75.71, 303.94°)
OKLaboklab(47.72% 0.0467 -0.1804)
OKLCHoklch(47.72% 0.186 284.5)
XYZxyz(15.2798, 9.6834, 50.3441)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742BF #AABF42
analogous
#426BBF #5742BF #9542BF
triadic
#5742BF #BF5742 #42BF57
tetradic
#5742BF #BF426B #AABF42 #42BF95
square
#5742BF #BF426B #AABF42 #42BF95
split-complementary
#5742BF #BF9542 #6BBF42
monochromatic
#2D2265 #423292 #5742BF #8070CE #A89DDE

Accessibility & contrast

On white

7.15
#5742BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5742BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5742BF
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742BF#FFFFFF#000000##FFFFFF
##5742BF1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#29617B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5742bf;
/* rgb */ color: rgb(87, 66, 191);
/* oklch */ color: oklch(47.7% 0.186 284.5);
Tailwind
colors: {
  custom: {
    50: '#9078d3',
    500: '#5742bf',
    950: '#000000',
  },
}
SCSS
$custom: #5742bf;
$custom-light: #9078d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5742bf",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 250.08,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4772,
    "c": 0.18639,
    "h": 284.5
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#5742BF
secondary
#C1CA93
accent
#D94FC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5742BF

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

Preview Lab → · Contrast checker → · Palette generator →

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