#5946AD#5946AD

#5946AD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.1% C 0.158 H 287.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5946AD
RGBrgb(89, 70, 173)
HSLhsl(251, 42%, 48%)
HSVhsv(251, 60%, 68%)
CMYKcmyk(48.6%, 59.5%, 0%, 32.2%)
CIE-LABlab(36.97, 34.80, -52.67)
CIE-LCHlch(36.97, 63.13, 303.46°)
OKLaboklab(47.11% 0.0466 -0.1505)
OKLCHoklch(47.11% 0.158 287.2)
XYZxyz(13.8506, 9.5207, 40.6349)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946AD #9AAD46
analogous
#4666AD #5946AD #8C46AD
triadic
#5946AD #AD5946 #46AD59
tetradic
#5946AD #AD4666 #9AAD46 #46AD8C
square
#5946AD #AD4666 #9AAD46 #46AD8C
split-complementary
#5946AD #AD8C46 #66AD46
monochromatic
#2C2356 #433481 #5946AD #7D6CC4 #A398D5

Accessibility & contrast

On white

7.23
#5946AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5946AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5946AD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946AD#FFFFFF#000000##FFFFFF
##5946AD1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#3D5E72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5946ad;
/* rgb */ color: rgb(89, 70, 173);
/* oklch */ color: oklch(47.1% 0.158 287.2);
Tailwind
colors: {
  custom: {
    50: '#8e7ac6',
    500: '#5946ad',
    950: '#000000',
  },
}
SCSS
$custom: #5946ad;
$custom-light: #8e7ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5946ad",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 173
  },
  "hsl": {
    "h": 251.068,
    "s": 42.387,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47114,
    "c": 0.1576,
    "h": 287.2
  },
  "luminance": 0.09521
}

Semantic roles & 50–950 ramp

primary
#5946AD
secondary
#B8C18D
accent
#D256BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5946AD

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

Preview Lab → · Contrast checker → · Palette generator →

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