#5741AB#5741AB

#5741AB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.9% C 0.162 H 287.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5741AB
RGBrgb(87, 65, 171)
HSLhsl(252, 45%, 46%)
HSVhsv(252, 62%, 67%)
CMYKcmyk(49.1%, 62%, 0%, 32.9%)
CIE-LABlab(35.49, 36.78, -53.88)
CIE-LCHlch(35.49, 65.24, 304.32°)
OKLaboklab(45.94% 0.0496 -0.1542)
OKLCHoklch(45.94% 0.162 287.8)
XYZxyz(13.1693, 8.7465, 39.5145)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741AB #95AB41
analogous
#4160AB #5741AB #8C41AB
triadic
#5741AB #AB5741 #41AB57
tetradic
#5741AB #AB4160 #95AB41 #41AB8C
square
#5741AB #AB4160 #95AB41 #41AB8C
split-complementary
#5741AB #AB8C41 #60AB41
monochromatic
#2A1F52 #40307F #5741AB #7965C4 #9F91D5

Accessibility & contrast

On white

7.64
#5741AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5741AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741AB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741AB#FFFFFF#000000##FFFFFF
##5741AB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#3A5A70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5741ab;
/* rgb */ color: rgb(87, 65, 171);
/* oklch */ color: oklch(45.9% 0.162 287.8);
Tailwind
colors: {
  custom: {
    50: '#8d77c5',
    500: '#5741ab',
    950: '#000000',
  },
}
SCSS
$custom: #5741ab;
$custom-light: #8d77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5741ab",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 252.453,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45941,
    "c": 0.16195,
    "h": 287.8
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#5741AB
secondary
#B5C187
accent
#D553BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5741AB

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

Preview Lab → · Contrast checker → · Palette generator →

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