#5740C4#5740C4

#5740C4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.195 H 284.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5740C4
RGBrgb(87, 64, 196)
HSLhsl(250, 53%, 51%)
HSVhsv(250, 67%, 77%)
CMYKcmyk(55.6%, 67.3%, 0%, 23.1%)
CIE-LABlab(37.26, 44.93, -65.75)
CIE-LCHlch(37.26, 79.64, 304.34°)
OKLaboklab(47.84% 0.0479 -0.1891)
OKLCHoklch(47.84% 0.195 284.2)
XYZxyz(15.7246, 9.6776, 53.2532)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740C4 #ADC440
analogous
#406BC4 #5740C4 #9940C4
triadic
#5740C4 #C45740 #40C457
tetradic
#5740C4 #C4406B #ADC440 #40C499
square
#5740C4 #C4406B #ADC440 #40C499
split-complementary
#5740C4 #C49940 #6BC440
monochromatic
#2D2069 #412F98 #5740C4 #806FD2 #A99EE1

Accessibility & contrast

On white

7.15
#5740C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5740C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740C4#FFFFFF#000000##FFFFFF
##5740C41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#23627D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5740c4;
/* rgb */ color: rgb(87, 64, 196);
/* oklch */ color: oklch(47.8% 0.195 284.2);
Tailwind
colors: {
  custom: {
    50: '#9177d7',
    500: '#5740c4',
    950: '#000000',
  },
}
SCSS
$custom: #5740c4;
$custom-light: #9177d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5740c4",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 250.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4784,
    "c": 0.19505,
    "h": 284.2
  },
  "luminance": 0.09679
}

Semantic roles & 50–950 ramp

primary
#5740C4
secondary
#C3CD93
accent
#DC4CC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740C4

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

Preview Lab → · Contrast checker → · Palette generator →

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