#5740CA#5740CA

#5740CA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.4% C 0.202 H 283.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5740CA
RGBrgb(87, 64, 202)
HSLhsl(250, 57%, 52%)
HSVhsv(250, 68%, 79%)
CMYKcmyk(56.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.76, 46.74, -68.42)
CIE-LCHlch(37.76, 82.86, 304.34°)
OKLaboklab(48.36% 0.047 -0.1969)
OKLCHoklch(48.36% 0.202 283.4)
XYZxyz(16.4213, 9.9563, 56.9221)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740CA #B3CA40
analogous
#406ECA #5740CA #9C40CA
triadic
#5740CA #CA5740 #40CA57
tetradic
#5740CA #CA406E #B3CA40 #40CA9C
square
#5740CA #CA406E #B3CA40 #40CA9C
split-complementary
#5740CA #CA9C40 #6ECA40
monochromatic
#2D1F70 #402CA0 #5740CA #8170D7 #ABA0E5

Accessibility & contrast

On white

7.02
#5740CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5740CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740CA
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740CA#FFFFFF#000000##FFFFFF
##5740CA1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#1A6480
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5740ca;
/* rgb */ color: rgb(87, 64, 202);
/* oklch */ color: oklch(48.4% 0.202 283.4);
Tailwind
colors: {
  custom: {
    50: '#9277db',
    500: '#5740ca',
    950: '#000000',
  },
}
SCSS
$custom: #5740ca;
$custom-light: #9277db;
$custom-dark: #000000;
JSON
{
  "hex": "#5740ca",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 250,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4836,
    "c": 0.20242,
    "h": 283.4
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#5740CA
secondary
#C7D195
accent
#E048C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5740CA

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

Preview Lab → · Contrast checker → · Palette generator →

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