#5742BE#5742BE

#5742BE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.185 H 284.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5742BE
RGBrgb(87, 66, 190)
HSLhsl(250, 49%, 50%)
HSVhsv(250, 65%, 75%)
CMYKcmyk(54.2%, 65.3%, 0%, 25.5%)
CIE-LABlab(37.19, 41.96, -62.36)
CIE-LCHlch(37.19, 75.16, 303.94°)
OKLaboklab(47.64% 0.0469 -0.1791)
OKLCHoklch(47.64% 0.185 284.7)
XYZxyz(15.1701, 9.6395, 49.7665)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5742BE #A9BE42
analogous
#426BBE #5742BE #9542BE
triadic
#5742BE #BE5742 #42BE57
tetradic
#5742BE #BE426B #A9BE42 #42BE95
square
#5742BE #BE426B #A9BE42 #42BE95
split-complementary
#5742BE #BE9542 #6BBE42
monochromatic
#2D2263 #423291 #5742BE #7F70CE #A89DDD

Accessibility & contrast

On white

7.17
#5742BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5742BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5742BE
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5742BE#FFFFFF#000000##FFFFFF
##5742BE1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#2A617A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5742be;
/* rgb */ color: rgb(87, 66, 190);
/* oklch */ color: oklch(47.6% 0.185 284.7);
Tailwind
colors: {
  custom: {
    50: '#9078d3',
    500: '#5742be',
    950: '#000000',
  },
}
SCSS
$custom: #5742be;
$custom-light: #9078d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5742be",
  "rgb": {
    "r": 87,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 250.161,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47637,
    "c": 0.18513,
    "h": 284.7
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#5742BE
secondary
#C0CA92
accent
#D84FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5742BE

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

Preview Lab → · Contrast checker → · Palette generator →

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