#5740AC#5740AC

#5740AC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.9% C 0.165 H 287.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5740AC
RGBrgb(87, 64, 172)
HSLhsl(253, 46%, 46%)
HSVhsv(253, 63%, 67%)
CMYKcmyk(49.4%, 62.8%, 0%, 32.5%)
CIE-LABlab(35.34, 37.68, -54.72)
CIE-LCHlch(35.34, 66.43, 304.55°)
OKLaboklab(45.86% 0.0506 -0.1567)
OKLCHoklch(45.86% 0.165 287.9)
XYZxyz(13.2081, 8.6710, 39.9995)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740AC #95AC40
analogous
#405FAC #5740AC #8D40AC
triadic
#5740AC #AC5740 #40AC57
tetradic
#5740AC #AC405F #95AC40 #40AC8D
square
#5740AC #AC405F #95AC40 #40AC8D
split-complementary
#5740AC #AC8D40 #5FAC40
monochromatic
#2A1F53 #402F7F #5740AC #7964C5 #9F91D6

Accessibility & contrast

On white

7.68
#5740AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5740AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740AC#FFFFFF#000000##FFFFFF
##5740AC1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#3A5A70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5740ac;
/* rgb */ color: rgb(87, 64, 172);
/* oklch */ color: oklch(45.9% 0.165 287.9);
Tailwind
colors: {
  custom: {
    50: '#8d76c5',
    500: '#5740ac',
    950: '#000000',
  },
}
SCSS
$custom: #5740ac;
$custom-light: #8d76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ac",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 252.778,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.16462,
    "h": 287.9
  },
  "luminance": 0.08672
}

Semantic roles & 50–950 ramp

primary
#5740AC
secondary
#B5C187
accent
#D552BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5740AC

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

Preview Lab → · Contrast checker → · Palette generator →

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