#5742BC#5742BC

#5742BC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.5% C 0.183 H 284.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5742BC
RGBrgb(87, 66, 188)
HSLhsl(250, 48%, 50%)
HSVhsv(250, 65%, 74%)
CMYKcmyk(53.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.03, 41.35, -61.44)
CIE-LCHlch(37.03, 74.06, 303.94°)
OKLaboklab(47.47% 0.0471 -0.1764)
OKLCHoklch(47.47% 0.183 284.9)
XYZxyz(14.9531, 9.5527, 48.6231)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742BC #A7BC42
analogous
#426ABC #5742BC #9442BC
triadic
#5742BC #BC5742 #42BC57
tetradic
#5742BC #BC426A #A7BC42 #42BC94
square
#5742BC #BC426A #A7BC42 #42BC94
split-complementary
#5742BC #BC9442 #6ABC42
monochromatic
#2D2261 #42328F #5742BC #7F6FCC #A79CDC

Accessibility & contrast

On white

7.21
#5742BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5742BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5742BC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742BC#FFFFFF#000000##FFFFFF
##5742BC1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#2C6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5742bc;
/* rgb */ color: rgb(87, 66, 188);
/* oklch */ color: oklch(47.5% 0.183 284.9);
Tailwind
colors: {
  custom: {
    50: '#9078d1',
    500: '#5742bc',
    950: '#000000',
  },
}
SCSS
$custom: #5742bc;
$custom-light: #9078d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5742bc",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 250.328,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47471,
    "c": 0.18259,
    "h": 284.9
  },
  "luminance": 0.09554
}

Semantic roles & 50–950 ramp

primary
#5742BC
secondary
#BFC991
accent
#D850C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5742BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5742BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva