#5740C2#5740C2

#5740C2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.193 H 284.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5740C2
RGBrgb(87, 64, 194)
HSLhsl(251, 52%, 51%)
HSVhsv(251, 67%, 76%)
CMYKcmyk(55.2%, 67%, 0%, 23.9%)
CIE-LABlab(37.09, 44.32, -64.86)
CIE-LCHlch(37.09, 78.55, 304.35°)
OKLaboklab(47.67% 0.0482 -0.1864)
OKLCHoklch(47.67% 0.193 284.5)
XYZxyz(15.4985, 9.5872, 52.0623)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740C2 #ABC240
analogous
#406AC2 #5740C2 #9840C2
triadic
#5740C2 #C25740 #40C257
tetradic
#5740C2 #C2406A #ABC240 #40C298
square
#5740C2 #C2406A #ABC240 #40C298
split-complementary
#5740C2 #C29840 #6AC240
monochromatic
#2D2167 #423095 #5740C2 #806ED1 #A99DE0

Accessibility & contrast

On white

7.20
#5740C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5740C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5740C2#FFFFFF#000000##FFFFFF
##5740C21.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#26617C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5740c2;
/* rgb */ color: rgb(87, 64, 194);
/* oklch */ color: oklch(47.7% 0.193 284.5);
Tailwind
colors: {
  custom: {
    50: '#9176d5',
    500: '#5740c2',
    950: '#000000',
  },
}
SCSS
$custom: #5740c2;
$custom-light: #9176d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5740c2",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 250.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47669,
    "c": 0.19257,
    "h": 284.5
  },
  "luminance": 0.09588
}

Semantic roles & 50–950 ramp

primary
#5740C2
secondary
#C2CC92
accent
#DB4DC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5740C2

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

Preview Lab → · Contrast checker → · Palette generator →

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