#5740BD#5740BD

#5740BD is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.186 H 285.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5740BD
RGBrgb(87, 64, 189)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 66%, 74%)
CMYKcmyk(54%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.68, 42.81, -62.60)
CIE-LCHlch(36.68, 75.84, 304.37°)
OKLaboklab(47.25% 0.0489 -0.1798)
OKLCHoklch(47.25% 0.186 285.2)
XYZxyz(14.9464, 9.3663, 49.1546)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740BD #A6BD40
analogous
#4068BD #5740BD #9640BD
triadic
#5740BD #BD5740 #40BD57
tetradic
#5740BD #BD4068 #A6BD40 #40BD96
square
#5740BD #BD4068 #A6BD40 #40BD96
split-complementary
#5740BD #BD9640 #68BD40
monochromatic
#2D2162 #42318F #5740BD #7F6DCD #A79ADD

Accessibility & contrast

On white

7.31
#5740BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5740BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740BD
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740BD#FFFFFF#000000##FFFFFF
##5740BD1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#2C5F79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5740bd;
/* rgb */ color: rgb(87, 64, 189);
/* oklch */ color: oklch(47.2% 0.186 285.2);
Tailwind
colors: {
  custom: {
    50: '#9076d2',
    500: '#5740bd',
    950: '#000000',
  },
}
SCSS
$custom: #5740bd;
$custom-light: #9076d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5740bd",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 251.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47245,
    "c": 0.18633,
    "h": 285.2
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#5740BD
secondary
#BEC990
accent
#D94FC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5740BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva