#5945AA#5945AA

#5945AA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.7% C 0.155 H 288.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5945AA
RGBrgb(89, 69, 170)
HSLhsl(252, 42%, 47%)
HSVhsv(252, 59%, 67%)
CMYKcmyk(47.6%, 59.4%, 0%, 33.3%)
CIE-LABlab(36.52, 34.50, -51.61)
CIE-LCHlch(36.52, 62.08, 303.77°)
OKLaboklab(46.72% 0.0478 -0.1474)
OKLCHoklch(46.72% 0.155 288)
XYZxyz(13.5016, 9.2818, 39.1026)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945AA #96AA45
analogous
#4564AA #5945AA #8C45AA
triadic
#5945AA #AA5945 #45AA59
tetradic
#5945AA #AA4564 #96AA45 #45AA8C
square
#5945AA #AA4564 #96AA45 #45AA8C
split-complementary
#5945AA #AA8C45 #64AA45
monochromatic
#2B2253 #42337E #5945AA #7B6AC2 #A295D4

Accessibility & contrast

On white

7.35
#5945AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5945AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5945AA#FFFFFF#000000##FFFFFF
##5945AA1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5945aa;
/* rgb */ color: rgb(89, 69, 170);
/* oklch */ color: oklch(46.7% 0.155 288.0);
Tailwind
colors: {
  custom: {
    50: '#8e79c4',
    500: '#5945aa',
    950: '#000000',
  },
}
SCSS
$custom: #5945aa;
$custom-light: #8e79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5945aa",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 251.881,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46718,
    "c": 0.15499,
    "h": 288
  },
  "luminance": 0.09282
}

Semantic roles & 50–950 ramp

primary
#5945AA
secondary
#B5C08B
accent
#D256B9
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5945AA

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

Preview Lab → · Contrast checker → · Palette generator →

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