#5742B2#5742B2

#5742B2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.7% C 0.170 H 286.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5742B2
RGBrgb(87, 66, 178)
HSLhsl(251, 46%, 48%)
HSVhsv(251, 63%, 70%)
CMYKcmyk(51.1%, 62.9%, 0%, 30.2%)
CIE-LABlab(36.25, 38.31, -56.82)
CIE-LCHlch(36.25, 68.53, 303.99°)
OKLaboklab(46.66% 0.048 -0.1628)
OKLCHoklch(46.66% 0.17 286.4)
XYZxyz(13.9122, 9.1363, 43.1413)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742B2 #9DB242
analogous
#4265B2 #5742B2 #8F42B2
triadic
#5742B2 #B25742 #42B257
tetradic
#5742B2 #B24265 #9DB242 #42B28F
square
#5742B2 #B24265 #9DB242 #42B28F
split-complementary
#5742B2 #B28F42 #65B242
monochromatic
#2B2159 #413185 #5742B2 #7B6AC8 #A396D8

Accessibility & contrast

On white

7.43
#5742B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5742B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5742B2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742B2#FFFFFF#000000##FFFFFF
##5742B21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#355D74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5742b2;
/* rgb */ color: rgb(87, 66, 178);
/* oklch */ color: oklch(46.7% 0.170 286.4);
Tailwind
colors: {
  custom: {
    50: '#8e77ca',
    500: '#5742b2',
    950: '#000000',
  },
}
SCSS
$custom: #5742b2;
$custom-light: #8e77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5742b2",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 251.25,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46658,
    "c": 0.16975,
    "h": 286.4
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

primary
#5742B2
secondary
#B9C48C
accent
#D652BD
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5742B2

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

Preview Lab → · Contrast checker → · Palette generator →

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