#5741AF#5741AF

#5741AF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.167 H 287.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5741AF
RGBrgb(87, 65, 175)
HSLhsl(252, 46%, 47%)
HSVhsv(252, 63%, 69%)
CMYKcmyk(50.3%, 62.9%, 0%, 31.4%)
CIE-LABlab(35.79, 37.99, -55.77)
CIE-LCHlch(35.79, 67.48, 304.26°)
OKLaboklab(46.26% 0.0493 -0.1597)
OKLCHoklch(46.26% 0.167 287.1)
XYZxyz(13.5564, 8.9013, 41.5530)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5741AF #99AF41
analogous
#4162AF #5741AF #8E41AF
triadic
#5741AF #AF5741 #41AF57
tetradic
#5741AF #AF4162 #99AF41 #41AF8E
square
#5741AF #AF4162 #99AF41 #41AF8E
split-complementary
#5741AF #AF8E41 #62AF41
monochromatic
#2B2056 #413082 #5741AF #7A67C6 #A193D7

Accessibility & contrast

On white

7.55
#5741AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5741AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5741AF
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5741AF#FFFFFF#000000##FFFFFF
##5741AF1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#385B72
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5741af;
/* rgb */ color: rgb(87, 65, 175);
/* oklch */ color: oklch(46.3% 0.167 287.1);
Tailwind
colors: {
  custom: {
    50: '#8e77c8',
    500: '#5741af',
    950: '#000000',
  },
}
SCSS
$custom: #5741af;
$custom-light: #8e77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5741af",
  "rgb": {
    "r": 87,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 252,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46257,
    "c": 0.16718,
    "h": 287.1
  },
  "luminance": 0.08902
}

Semantic roles & 50–950 ramp

primary
#5741AF
secondary
#B7C289
accent
#D552BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5741AF

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

Preview Lab → · Contrast checker → · Palette generator →

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