#5740C1#5740C1

#5740C1 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.191 H 284.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5740C1
RGBrgb(87, 64, 193)
HSLhsl(251, 51%, 50%)
HSVhsv(251, 67%, 76%)
CMYKcmyk(54.9%, 66.8%, 0%, 24.3%)
CIE-LABlab(37.01, 44.02, -64.41)
CIE-LCHlch(37.01, 78.01, 304.35°)
OKLaboklab(47.58% 0.0483 -0.1851)
OKLCHoklch(47.58% 0.191 284.6)
XYZxyz(15.3866, 9.5424, 51.4728)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740C1 #AAC140
analogous
#4069C1 #5740C1 #9840C1
triadic
#5740C1 #C15740 #40C157
tetradic
#5740C1 #C14069 #AAC140 #40C198
square
#5740C1 #C14069 #AAC140 #40C198
split-complementary
#5740C1 #C19840 #69C140
monochromatic
#2D2166 #423094 #5740C1 #806ED0 #A89CDF

Accessibility & contrast

On white

7.22
#5740C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5740C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740C1#FFFFFF#000000##FFFFFF
##5740C11.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#27617B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5740c1;
/* rgb */ color: rgb(87, 64, 193);
/* oklch */ color: oklch(47.6% 0.191 284.6);
Tailwind
colors: {
  custom: {
    50: '#9076d5',
    500: '#5740c1',
    950: '#000000',
  },
}
SCSS
$custom: #5740c1;
$custom-light: #9076d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5740c1",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 250.698,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47584,
    "c": 0.19132,
    "h": 284.6
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#5740C1
secondary
#C1CB92
accent
#DA4DC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740C1

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

Preview Lab → · Contrast checker → · Palette generator →

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