#5945AE#5945AE

#5945AE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.0% C 0.160 H 287.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5945AE
RGBrgb(89, 69, 174)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 60%, 68%)
CMYKcmyk(48.9%, 60.3%, 0%, 31.8%)
CIE-LABlab(36.81, 35.71, -53.52)
CIE-LCHlch(36.81, 64.34, 303.71°)
OKLaboklab(47.02% 0.0477 -0.153)
OKLCHoklch(47.02% 0.16 287.3)
XYZxyz(13.8857, 9.4355, 41.1258)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945AE #9AAE45
analogous
#4565AE #5945AE #8E45AE
triadic
#5945AE #AE5945 #45AE59
tetradic
#5945AE #AE4565 #9AAE45 #45AE8E
square
#5945AE #AE4565 #9AAE45 #45AE8E
split-complementary
#5945AE #AE8E45 #65AE45
monochromatic
#2C2256 #433482 #5945AE #7D6CC5 #A397D6

Accessibility & contrast

On white

7.27
#5945AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5945AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5945AE
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945AE#FFFFFF#000000##FFFFFF
##5945AE1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#3C5D73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5945ae;
/* rgb */ color: rgb(89, 69, 174);
/* oklch */ color: oklch(47.0% 0.160 287.3);
Tailwind
colors: {
  custom: {
    50: '#8f79c7',
    500: '#5945ae',
    950: '#000000',
  },
}
SCSS
$custom: #5945ae;
$custom-light: #8f79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5945ae",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 251.429,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47021,
    "c": 0.16031,
    "h": 287.3
  },
  "luminance": 0.09436
}

Semantic roles & 50–950 ramp

primary
#5945AE
secondary
#B8C28D
accent
#D355BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5945AE

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

Preview Lab → · Contrast checker → · Palette generator →

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