#5741BA#5741BA

#5741BA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.1% C 0.181 H 285.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5741BA
RGBrgb(87, 65, 186)
HSLhsl(251, 48%, 49%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(53.2%, 65.1%, 0%, 27.1%)
CIE-LABlab(36.65, 41.32, -60.88)
CIE-LCHlch(36.65, 73.58, 304.17°)
OKLaboklab(47.15% 0.0483 -0.1748)
OKLCHoklch(47.15% 0.181 285.4)
XYZxyz(14.6810, 9.3512, 47.4762)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741BA #A4BA41
analogous
#4168BA #5741BA #9441BA
triadic
#5741BA #BA5741 #41BA57
tetradic
#5741BA #BA4168 #A4BA41 #41BA94
square
#5741BA #BA4168 #A4BA41 #41BA94
split-complementary
#5741BA #BA9441 #68BA41
monochromatic
#2D215F #42318D #5741BA #7E6CCC #A69ADC

Accessibility & contrast

On white

7.32
#5741BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5741BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741BA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741BA#FFFFFF#000000##FFFFFF
##5741BA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#2E5F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5741ba;
/* rgb */ color: rgb(87, 65, 186);
/* oklch */ color: oklch(47.1% 0.181 285.4);
Tailwind
colors: {
  custom: {
    50: '#8f77d0',
    500: '#5741ba',
    950: '#000000',
  },
}
SCSS
$custom: #5741ba;
$custom-light: #8f77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5741ba",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 250.909,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47149,
    "c": 0.18131,
    "h": 285.4
  },
  "luminance": 0.09352
}

Semantic roles & 50–950 ramp

primary
#5741BA
secondary
#BDC88F
accent
#D850BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5741BA

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

Preview Lab → · Contrast checker → · Palette generator →

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