#7946BD#7946BD

#7946BD is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.5% C 0.179 H 299.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7946BD
RGBrgb(121, 70, 189)
HSLhsl(266, 47%, 51%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(36%, 63%, 0%, 25.9%)
CIE-LABlab(41.40, 46.24, -54.77)
CIE-LCHlch(41.40, 71.68, 310.17°)
OKLaboklab(51.48% 0.0892 -0.1557)
OKLCHoklch(51.48% 0.179 299.8)
XYZxyz(19.2584, 12.1192, 49.4589)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946BD #8ABD46
analogous
#464EBD #7946BD #B446BD
triadic
#7946BD #BD7946 #46BD79
tetradic
#7946BD #BD464E #8ABD46 #46BDB4
square
#7946BD #BD464E #8ABD46 #46BDB4
split-complementary
#7946BD #BDB446 #4EBD46
monochromatic
#402465 #5C3492 #7946BD #9A73CD #BAA0DD

Accessibility & contrast

On white

6.13
#7946BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7946BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946BD
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946BD#FFFFFF#000000##FFFFFF
##7946BD1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#1461BA
Tritanopia (blue-blind)
#6A607B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7946bd;
/* rgb */ color: rgb(121, 70, 189);
/* oklch */ color: oklch(51.5% 0.179 299.8);
Tailwind
colors: {
  custom: {
    50: '#a47cd2',
    500: '#7946bd',
    950: '#000000',
  },
}
SCSS
$custom: #7946bd;
$custom-light: #a47cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7946bd",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 265.714,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51481,
    "c": 0.17943,
    "h": 299.8
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#7946BD
secondary
#B3CA95
accent
#D7519D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7946BD

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

Preview Lab → · Contrast checker → · Palette generator →

#7946BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva