#5941AA#5941AA

#5941AA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.0% C 0.161 H 289.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5941AA
RGBrgb(89, 65, 170)
HSLhsl(254, 45%, 46%)
HSVhsv(254, 62%, 67%)
CMYKcmyk(47.6%, 61.8%, 0%, 33.3%)
CIE-LABlab(35.61, 36.90, -53.08)
CIE-LCHlch(35.61, 64.65, 304.80°)
OKLaboklab(46.05% 0.0524 -0.1518)
OKLCHoklch(46.05% 0.161 289)
XYZxyz(13.2637, 8.8062, 39.0233)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5941AA #92AA41
analogous
#415DAA #5941AA #8D41AA
triadic
#5941AA #AA5941 #41AA59
tetradic
#5941AA #AA415D #92AA41 #41AA8D
square
#5941AA #AA415D #92AA41 #41AA8D
split-complementary
#5941AA #AA8D41 #5DAA41
monochromatic
#2B1F51 #42307E #5941AA #7A64C4 #A091D5

Accessibility & contrast

On white

7.60
#5941AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5941AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5941AA
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5941AA#FFFFFF#000000##FFFFFF
##5941AA1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#3F596F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5941aa;
/* rgb */ color: rgb(89, 65, 170);
/* oklch */ color: oklch(46.0% 0.161 289.0);
Tailwind
colors: {
  custom: {
    50: '#8e77c4',
    500: '#5941aa',
    950: '#000000',
  },
}
SCSS
$custom: #5941aa;
$custom-light: #8e77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5941aa",
  "rgb": {
    "r": 89,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 253.714,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46049,
    "c": 0.16056,
    "h": 289
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#5941AA
secondary
#B3C087
accent
#D453B7
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5941AA

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

Preview Lab → · Contrast checker → · Palette generator →

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