#5740C7#5740C7

#5740C7 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.199 H 283.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5740C7
RGBrgb(87, 64, 199)
HSLhsl(250, 55%, 52%)
HSVhsv(250, 68%, 78%)
CMYKcmyk(56.3%, 67.8%, 0%, 22%)
CIE-LABlab(37.51, 45.83, -67.09)
CIE-LCHlch(37.51, 81.25, 304.34°)
OKLaboklab(48.1% 0.0475 -0.193)
OKLCHoklch(48.1% 0.199 283.8)
XYZxyz(16.0695, 9.8156, 55.0696)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740C7 #B0C740
analogous
#406DC7 #5740C7 #9B40C7
triadic
#5740C7 #C75740 #40C757
tetradic
#5740C7 #C7406D #B0C740 #40C79B
square
#5740C7 #C7406D #B0C740 #40C79B
split-complementary
#5740C7 #C79B40 #6DC740
monochromatic
#2D206D #412E9C #5740C7 #816FD5 #AA9FE3

Accessibility & contrast

On white

7.09
#5740C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5740C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740C7#FFFFFF#000000##FFFFFF
##5740C71.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0054C4
Tritanopia (blue-blind)
#1F637E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5740c7;
/* rgb */ color: rgb(87, 64, 199);
/* oklch */ color: oklch(48.1% 0.199 283.8);
Tailwind
colors: {
  custom: {
    50: '#9177d9',
    500: '#5740c7',
    950: '#000000',
  },
}
SCSS
$custom: #5740c7;
$custom-light: #9177d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5740c7",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 250.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48099,
    "c": 0.19875,
    "h": 283.8
  },
  "luminance": 0.09817
}

Semantic roles & 50–950 ramp

primary
#5740C7
secondary
#C5CF94
accent
#DE4AC5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740C7

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

Preview Lab → · Contrast checker → · Palette generator →

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