#7946BF#7946BF

#7946BF is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.182 H 299.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7946BF
RGBrgb(121, 70, 191)
HSLhsl(265, 49%, 51%)
HSVhsv(265, 63%, 75%)
CMYKcmyk(36.6%, 63.4%, 0%, 25.1%)
CIE-LABlab(41.54, 46.75, -55.71)
CIE-LCHlch(41.54, 72.73, 310.00°)
OKLaboklab(51.63% 0.0891 -0.1585)
OKLCHoklch(51.63% 0.182 299.3)
XYZxyz(19.4770, 12.2067, 50.6101)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946BF #8CBF46
analogous
#464FBF #7946BF #B546BF
triadic
#7946BF #BF7946 #46BF79
tetradic
#7946BF #BF464F #8CBF46 #46BFB5
square
#7946BF #BF464F #8CBF46 #46BFB5
split-complementary
#7946BF #BFB546 #4FBF46
monochromatic
#402467 #5C3394 #7946BF #9A73CF #BBA1DE

Accessibility & contrast

On white

6.10
#7946BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7946BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946BF
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946BF#FFFFFF#000000##FFFFFF
##7946BF1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0D61BC
Tritanopia (blue-blind)
#69617C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7946bf;
/* rgb */ color: rgb(121, 70, 191);
/* oklch */ color: oklch(51.6% 0.182 299.3);
Tailwind
colors: {
  custom: {
    50: '#a57cd3',
    500: '#7946bf',
    950: '#000000',
  },
}
SCSS
$custom: #7946bf;
$custom-light: #a57cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7946bf",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 265.289,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.18177,
    "h": 299.3
  },
  "luminance": 0.12207
}

Semantic roles & 50–950 ramp

primary
#7946BF
secondary
#B5CB96
accent
#D8509F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7946BF

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

Preview Lab → · Contrast checker → · Palette generator →

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