#5740BA#5740BA

#5740BA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.183 H 285.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5740BA
RGBrgb(87, 64, 186)
HSLhsl(251, 49%, 49%)
HSVhsv(251, 66%, 73%)
CMYKcmyk(53.2%, 65.6%, 0%, 27.1%)
CIE-LABlab(36.44, 41.90, -61.23)
CIE-LCHlch(36.44, 74.19, 304.39°)
OKLaboklab(46.99% 0.0492 -0.1758)
OKLCHoklch(46.99% 0.183 285.6)
XYZxyz(14.6241, 9.2374, 47.4573)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740BA #A3BA40
analogous
#4066BA #5740BA #9440BA
triadic
#5740BA #BA5740 #40BA57
tetradic
#5740BA #BA4066 #A3BA40 #40BA94
square
#5740BA #BA4066 #A3BA40 #40BA94
split-complementary
#5740BA #BA9440 #66BA40
monochromatic
#2C215F #42308C #5740BA #7D6BCC #A599DC

Accessibility & contrast

On white

7.37
#5740BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5740BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740BA
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740BA#FFFFFF#000000##FFFFFF
##5740BA1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#2F5E77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5740ba;
/* rgb */ color: rgb(87, 64, 186);
/* oklch */ color: oklch(47.0% 0.183 285.6);
Tailwind
colors: {
  custom: {
    50: '#8f76d0',
    500: '#5740ba',
    950: '#000000',
  },
}
SCSS
$custom: #5740ba;
$custom-light: #8f76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ba",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 251.311,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.18255,
    "h": 285.6
  },
  "luminance": 0.09238
}

Semantic roles & 50–950 ramp

primary
#5740BA
secondary
#BDC88E
accent
#D84FBF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5740BA

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

Preview Lab → · Contrast checker → · Palette generator →

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