#5740C8#5740C8

#5740C8 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.200 H 283.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5740C8
RGBrgb(87, 64, 200)
HSLhsl(250, 55%, 52%)
HSVhsv(250, 68%, 78%)
CMYKcmyk(56.5%, 68%, 0%, 21.6%)
CIE-LABlab(37.59, 46.13, -67.53)
CIE-LCHlch(37.59, 81.79, 304.34°)
OKLaboklab(48.19% 0.0473 -0.1943)
OKLCHoklch(48.19% 0.2 283.7)
XYZxyz(16.1860, 9.8622, 55.6831)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740C8 #B1C840
analogous
#406DC8 #5740C8 #9B40C8
triadic
#5740C8 #C85740 #40C857
tetradic
#5740C8 #C8406D #B1C840 #40C89B
square
#5740C8 #C8406D #B1C840 #40C89B
split-complementary
#5740C8 #C89B40 #6DC840
monochromatic
#2D206E #402D9D #5740C8 #8170D6 #AB9FE3

Accessibility & contrast

On white

7.06
#5740C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5740C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740C8
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740C8#FFFFFF#000000##FFFFFF
##5740C81.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#1D637F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5740c8;
/* rgb */ color: rgb(87, 64, 200);
/* oklch */ color: oklch(48.2% 0.200 283.7);
Tailwind
colors: {
  custom: {
    50: '#9277da',
    500: '#5740c8',
    950: '#000000',
  },
}
SCSS
$custom: #5740c8;
$custom-light: #9277da;
$custom-dark: #000000;
JSON
{
  "hex": "#5740c8",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 250.147,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48186,
    "c": 0.19998,
    "h": 283.7
  },
  "luminance": 0.09863
}

Semantic roles & 50–950 ramp

primary
#5740C8
secondary
#C6D094
accent
#DF49C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740C8

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

Preview Lab → · Contrast checker → · Palette generator →

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