#5946AF#5946AF

#5946AF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.3% C 0.160 H 286.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5946AF
RGBrgb(89, 70, 175)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 60%, 69%)
CMYKcmyk(49.1%, 60%, 0%, 31.4%)
CIE-LABlab(37.11, 35.41, -53.62)
CIE-LCHlch(37.11, 64.26, 303.44°)
OKLaboklab(47.27% 0.0466 -0.1534)
OKLCHoklch(47.27% 0.16 286.9)
XYZxyz(14.0456, 9.5987, 41.6618)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946AF #9CAF46
analogous
#4667AF #5946AF #8D46AF
triadic
#5946AF #AF5946 #46AF59
tetradic
#5946AF #AF4667 #9CAF46 #46AF8D
square
#5946AF #AF4667 #9CAF46 #46AF8D
split-complementary
#5946AF #AF8D46 #67AF46
monochromatic
#2D2358 #433583 #5946AF #7D6DC5 #A499D6

Accessibility & contrast

On white

7.19
#5946AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5946AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5946AF
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946AF#FFFFFF#000000##FFFFFF
##5946AF1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3B5E74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5946af;
/* rgb */ color: rgb(89, 70, 175);
/* oklch */ color: oklch(47.3% 0.160 286.9);
Tailwind
colors: {
  custom: {
    50: '#8f7ac8',
    500: '#5946af',
    950: '#000000',
  },
}
SCSS
$custom: #5946af;
$custom-light: #8f7ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5946af",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 250.857,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.16027,
    "h": 286.9
  },
  "luminance": 0.09599
}

Semantic roles & 50–950 ramp

primary
#5946AF
secondary
#B9C28E
accent
#D355BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5946AF

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

Preview Lab → · Contrast checker → · Palette generator →

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