#5741B2#5741B2

#5741B2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.171 H 286.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5741B2
RGBrgb(87, 65, 178)
HSLhsl(252, 47%, 48%)
HSVhsv(252, 63%, 70%)
CMYKcmyk(51.1%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.02, 38.90, -57.18)
CIE-LCHlch(36.02, 69.15, 304.23°)
OKLaboklab(46.5% 0.0491 -0.1639)
OKLCHoklch(46.5% 0.171 286.7)
XYZxyz(13.8543, 9.0205, 43.1220)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741B2 #9CB241
analogous
#4164B2 #5741B2 #8F41B2
triadic
#5741B2 #B25741 #41B257
tetradic
#5741B2 #B24164 #9CB241 #41B28F
square
#5741B2 #B24164 #9CB241 #41B28F
split-complementary
#5741B2 #B28F41 #64B241
monochromatic
#2B2058 #413185 #5741B2 #7B68C8 #A295D8

Accessibility & contrast

On white

7.49
#5741B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5741B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741B2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741B2#FFFFFF#000000##FFFFFF
##5741B21.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5741b2;
/* rgb */ color: rgb(87, 65, 178);
/* oklch */ color: oklch(46.5% 0.171 286.7);
Tailwind
colors: {
  custom: {
    50: '#8e77ca',
    500: '#5741b2',
    950: '#000000',
  },
}
SCSS
$custom: #5741b2;
$custom-light: #8e77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5741b2",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 251.681,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46497,
    "c": 0.17106,
    "h": 286.7
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

primary
#5741B2
secondary
#B9C48B
accent
#D652BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5741B2

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

Preview Lab → · Contrast checker → · Palette generator →

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