#5946AC#5946AC

#5946AC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.0% C 0.156 H 287.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5946AC
RGBrgb(89, 70, 172)
HSLhsl(251, 42%, 47%)
HSVhsv(251, 59%, 67%)
CMYKcmyk(48.3%, 59.3%, 0%, 32.5%)
CIE-LABlab(36.90, 34.50, -52.19)
CIE-LCHlch(36.90, 62.56, 303.47°)
OKLaboklab(47.04% 0.0466 -0.1491)
OKLCHoklch(47.04% 0.156 287.4)
XYZxyz(13.7542, 9.4821, 40.1272)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946AC #99AC46
analogous
#4666AC #5946AC #8C46AC
triadic
#5946AC #AC5946 #46AC59
tetradic
#5946AC #AC4666 #99AC46 #46AC8C
square
#5946AC #AC4666 #99AC46 #46AC8C
split-complementary
#5946AC #AC8C46 #66AC46
monochromatic
#2C2355 #423481 #5946AC #7C6CC3 #A398D5

Accessibility & contrast

On white

7.25
#5946AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5946AC
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946AC#FFFFFF#000000##FFFFFF
##5946AC1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#3D5D72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5946ac;
/* rgb */ color: rgb(89, 70, 172);
/* oklch */ color: oklch(47.0% 0.156 287.4);
Tailwind
colors: {
  custom: {
    50: '#8e7ac5',
    500: '#5946ac',
    950: '#000000',
  },
}
SCSS
$custom: #5946ac;
$custom-light: #8e7ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5946ac",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 251.176,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47039,
    "c": 0.15627,
    "h": 287.4
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5946AC

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

Preview Lab → · Contrast checker → · Palette generator →

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