#5740B2#5740B2

#5740B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.172 H 286.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5740B2
RGBrgb(87, 64, 178)
HSLhsl(252, 47%, 47%)
HSVhsv(252, 64%, 70%)
CMYKcmyk(51.1%, 64%, 0%, 30.2%)
CIE-LABlab(35.80, 39.49, -57.53)
CIE-LCHlch(35.80, 69.78, 304.46°)
OKLaboklab(46.34% 0.0501 -0.1649)
OKLCHoklch(46.34% 0.172 286.9)
XYZxyz(13.7974, 8.9067, 43.1030)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5740B2 #9BB240
analogous
#4062B2 #5740B2 #9040B2
triadic
#5740B2 #B25740 #40B257
tetradic
#5740B2 #B24062 #9BB240 #40B290
square
#5740B2 #B24062 #9BB240 #40B290
split-complementary
#5740B2 #B29040 #62B240
monochromatic
#2B2058 #413085 #5740B2 #7B67C8 #A294D8

Accessibility & contrast

On white

7.55
#5740B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5740B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5740B2
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5740B2#FFFFFF#000000##FFFFFF
##5740B21.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#355C73
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5740b2;
/* rgb */ color: rgb(87, 64, 178);
/* oklch */ color: oklch(46.3% 0.172 286.9);
Tailwind
colors: {
  custom: {
    50: '#8e76ca',
    500: '#5740b2',
    950: '#000000',
  },
}
SCSS
$custom: #5740b2;
$custom-light: #8e76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5740b2",
  "rgb": {
    "r": 87,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 252.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.17237,
    "h": 286.9
  },
  "luminance": 0.08907
}

Semantic roles & 50–950 ramp

primary
#5740B2
secondary
#B8C48A
accent
#D751BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5740B2

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

Preview Lab → · Contrast checker → · Palette generator →

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