#5741BC#5741BC

#5741BC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.184 H 285.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5741BC
RGBrgb(87, 65, 188)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 65%, 74%)
CMYKcmyk(53.7%, 65.4%, 0%, 26.3%)
CIE-LABlab(36.81, 41.93, -61.79)
CIE-LCHlch(36.81, 74.68, 304.16°)
OKLaboklab(47.32% 0.048 -0.1774)
OKLCHoklch(47.32% 0.184 285.1)
XYZxyz(14.8951, 9.4369, 48.6038)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741BC #A6BC41
analogous
#4168BC #5741BC #9541BC
triadic
#5741BC #BC5741 #41BC57
tetradic
#5741BC #BC4168 #A6BC41 #41BC95
square
#5741BC #BC4168 #A6BC41 #41BC95
split-complementary
#5741BC #BC9541 #68BC41
monochromatic
#2D2261 #42318F #5741BC #7F6ECD #A79BDC

Accessibility & contrast

On white

7.27
#5741BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5741BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741BC
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741BC#FFFFFF#000000##FFFFFF
##5741BC1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#2C6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5741bc;
/* rgb */ color: rgb(87, 65, 188);
/* oklch */ color: oklch(47.3% 0.184 285.1);
Tailwind
colors: {
  custom: {
    50: '#9077d1',
    500: '#5741bc',
    950: '#000000',
  },
}
SCSS
$custom: #5741bc;
$custom-light: #9077d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5741bc",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 250.732,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47315,
    "c": 0.18384,
    "h": 285.1
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#5741BC
secondary
#BEC990
accent
#D850C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5741BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5741BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva