#5740AA#5740AA

#5740AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.162 H 288.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5740AA
RGBrgb(87, 64, 170)
HSLhsl(253, 45%, 46%)
HSVhsv(253, 62%, 67%)
CMYKcmyk(48.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(35.19, 37.08, -53.77)
CIE-LCHlch(35.19, 65.31, 304.59°)
OKLaboklab(45.7% 0.0507 -0.1539)
OKLCHoklch(45.7% 0.162 288.2)
XYZxyz(13.0175, 8.5948, 38.9955)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740AA #93AA40
analogous
#405EAA #5740AA #8C40AA
triadic
#5740AA #AA5740 #40AA57
tetradic
#5740AA #AA405E #93AA40 #40AA8C
square
#5740AA #AA405E #93AA40 #40AA8C
split-complementary
#5740AA #AA8C40 #5EAA40
monochromatic
#291F51 #402F7E #5740AA #7863C4 #9F8FD5

Accessibility & contrast

On white

7.72
#5740AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5740AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740AA#FFFFFF#000000##FFFFFF
##5740AA1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#3B596F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5740aa;
/* rgb */ color: rgb(87, 64, 170);
/* oklch */ color: oklch(45.7% 0.162 288.2);
Tailwind
colors: {
  custom: {
    50: '#8d76c4',
    500: '#5740aa',
    950: '#000000',
  },
}
SCSS
$custom: #5740aa;
$custom-light: #8d76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5740aa",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 253.019,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45699,
    "c": 0.16201,
    "h": 288.2
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#5740AA
secondary
#B3C086
accent
#D553B9
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5740AA

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

Preview Lab → · Contrast checker → · Palette generator →

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