#5946AE#5946AE

#5946AE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.2% C 0.159 H 287.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5946AE
RGBrgb(89, 70, 174)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 60%, 68%)
CMYKcmyk(48.9%, 59.8%, 0%, 31.8%)
CIE-LABlab(37.04, 35.11, -53.15)
CIE-LCHlch(37.04, 63.70, 303.45°)
OKLaboklab(47.19% 0.0466 -0.1519)
OKLCHoklch(47.19% 0.159 287)
XYZxyz(13.9477, 9.5595, 41.1464)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946AE #9BAE46
analogous
#4667AE #5946AE #8D46AE
triadic
#5946AE #AE5946 #46AE59
tetradic
#5946AE #AE4667 #9BAE46 #46AE8D
square
#5946AE #AE4667 #9BAE46 #46AE8D
split-complementary
#5946AE #AE8D46 #67AE46
monochromatic
#2C2357 #433482 #5946AE #7D6DC4 #A499D6

Accessibility & contrast

On white

7.21
#5946AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5946AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5946AE
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946AE#FFFFFF#000000##FFFFFF
##5946AE1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#3C5E73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5946ae;
/* rgb */ color: rgb(89, 70, 174);
/* oklch */ color: oklch(47.2% 0.159 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e7ac7',
    500: '#5946ae',
    950: '#000000',
  },
}
SCSS
$custom: #5946ae;
$custom-light: #8e7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#5946ae",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 174
  },
  "hsl": {
    "h": 250.962,
    "s": 42.623,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4719,
    "c": 0.15893,
    "h": 287
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#5946AE
secondary
#B8C28E
accent
#D255BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5946AE

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

Preview Lab → · Contrast checker → · Palette generator →

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