#5740AE#5740AE

#5740AE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.167 H 287.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5740AE
RGBrgb(87, 64, 174)
HSLhsl(253, 46%, 47%)
HSVhsv(253, 63%, 68%)
CMYKcmyk(50%, 63.2%, 0%, 31.8%)
CIE-LABlab(35.50, 38.28, -55.66)
CIE-LCHlch(35.50, 67.55, 304.52°)
OKLaboklab(46.02% 0.0504 -0.1594)
OKLCHoklch(46.02% 0.167 287.6)
XYZxyz(13.4016, 8.7484, 41.0187)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740AE #97AE40
analogous
#4060AE #5740AE #8E40AE
triadic
#5740AE #AE5740 #40AE57
tetradic
#5740AE #AE4060 #97AE40 #40AE8E
square
#5740AE #AE4060 #97AE40 #40AE8E
split-complementary
#5740AE #AE8E40 #60AE40
monochromatic
#2A1F55 #413081 #5740AE #7965C6 #A092D7

Accessibility & contrast

On white

7.64
#5740AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5740AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740AE
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740AE#FFFFFF#000000##FFFFFF
##5740AE1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#385A71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5740ae;
/* rgb */ color: rgb(87, 64, 174);
/* oklch */ color: oklch(46.0% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#8e76c7',
    500: '#5740ae',
    950: '#000000',
  },
}
SCSS
$custom: #5740ae;
$custom-light: #8e76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ae",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 252.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46016,
    "c": 0.16721,
    "h": 287.6
  },
  "luminance": 0.08749
}

Semantic roles & 50–950 ramp

primary
#5740AE
secondary
#B6C288
accent
#D652BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5740AE

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

Preview Lab → · Contrast checker → · Palette generator →

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