#5745AE#5745AE

#5745AE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.8% C 0.160 H 286.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5745AE
RGBrgb(87, 69, 174)
HSLhsl(250, 43%, 48%)
HSVhsv(250, 60%, 68%)
CMYKcmyk(50%, 60.3%, 0%, 31.8%)
CIE-LABlab(36.63, 35.30, -53.83)
CIE-LCHlch(36.63, 64.37, 303.25°)
OKLaboklab(46.84% 0.045 -0.154)
OKLCHoklch(46.84% 0.16 286.3)
XYZxyz(13.6963, 9.3378, 41.1169)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745AE #9CAE45
analogous
#4567AE #5745AE #8C45AE
triadic
#5745AE #AE5745 #45AE57
tetradic
#5745AE #AE4567 #9CAE45 #45AE8C
square
#5745AE #AE4567 #9CAE45 #45AE8C
split-complementary
#5745AE #AE8C45 #67AE45
monochromatic
#2B2256 #413482 #5745AE #7B6CC5 #A297D6

Accessibility & contrast

On white

7.32
#5745AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5745AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5745AE#FFFFFF#000000##FFFFFF
##5745AE1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#385D73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5745ae;
/* rgb */ color: rgb(87, 69, 174);
/* oklch */ color: oklch(46.8% 0.160 286.3);
Tailwind
colors: {
  custom: {
    50: '#8d79c7',
    500: '#5745ae',
    950: '#000000',
  },
}
SCSS
$custom: #5745ae;
$custom-light: #8d79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5745ae",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 250.286,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46842,
    "c": 0.16046,
    "h": 286.3
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#5745AE
secondary
#B9C28D
accent
#D355BD
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5745AE

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

Preview Lab → · Contrast checker → · Palette generator →

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