#5745AA#5745AA

#5745AA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.5% C 0.155 H 286.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5745AA
RGBrgb(87, 69, 170)
HSLhsl(251, 42%, 47%)
HSVhsv(251, 59%, 67%)
CMYKcmyk(48.8%, 59.4%, 0%, 33.3%)
CIE-LABlab(36.34, 34.07, -51.91)
CIE-LCHlch(36.34, 62.10, 303.28°)
OKLaboklab(46.54% 0.0452 -0.1484)
OKLCHoklch(46.54% 0.155 286.9)
XYZxyz(13.3122, 9.1842, 39.0937)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745AA #98AA45
analogous
#4566AA #5745AA #8A45AA
triadic
#5745AA #AA5745 #45AA57
tetradic
#5745AA #AA4566 #98AA45 #45AA8A
square
#5745AA #AA4566 #98AA45 #45AA8A
split-complementary
#5745AA #AA8A45 #66AA45
monochromatic
#2A2253 #41337E #5745AA #7A6AC2 #A095D4

Accessibility & contrast

On white

7.40
#5745AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5745AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5745AA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5745AA#FFFFFF#000000##FFFFFF
##5745AA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#3B5C71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5745aa;
/* rgb */ color: rgb(87, 69, 170);
/* oklch */ color: oklch(46.5% 0.155 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d79c4',
    500: '#5745aa',
    950: '#000000',
  },
}
SCSS
$custom: #5745aa;
$custom-light: #8d79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5745aa",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 250.693,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46537,
    "c": 0.15511,
    "h": 286.9
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#5745AA
secondary
#B6C08B
accent
#D256BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5745AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5745AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva