#5745AF#5745AF

#5745AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 46.9% C 0.162 H 286.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5745AF
RGBrgb(87, 69, 175)
HSLhsl(250, 43%, 48%)
HSVhsv(250, 61%, 69%)
CMYKcmyk(50.3%, 60.6%, 0%, 31.4%)
CIE-LABlab(36.70, 35.60, -54.30)
CIE-LCHlch(36.70, 64.93, 303.25°)
OKLaboklab(46.92% 0.045 -0.1554)
OKLCHoklch(46.92% 0.162 286.1)
XYZxyz(13.7942, 9.3770, 41.6322)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5745AF #9DAF45
analogous
#4568AF #5745AF #8C45AF
triadic
#5745AF #AF5745 #45AF57
tetradic
#5745AF #AF4568 #9DAF45 #45AF8C
square
#5745AF #AF4568 #9DAF45 #45AF8C
split-complementary
#5745AF #AF8C45 #68AF45
monochromatic
#2B2257 #413483 #5745AF #7B6CC5 #A398D6

Accessibility & contrast

On white

7.30
#5745AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5745AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5745AF#FFFFFF#000000##FFFFFF
##5745AF1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#375E73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5745af;
/* rgb */ color: rgb(87, 69, 175);
/* oklch */ color: oklch(46.9% 0.162 286.1);
Tailwind
colors: {
  custom: {
    50: '#8d79c8',
    500: '#5745af',
    950: '#000000',
  },
}
SCSS
$custom: #5745af;
$custom-light: #8d79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5745af",
  "rgb": {
    "r": 87,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 250.189,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46919,
    "c": 0.16179,
    "h": 286.1
  },
  "luminance": 0.09378
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5745AF

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

Preview Lab → · Contrast checker → · Palette generator →

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