#7946B8#7946B8

#7946B8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.174 H 301.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7946B8
RGBrgb(121, 70, 184)
HSLhsl(267, 45%, 50%)
HSVhsv(267, 62%, 72%)
CMYKcmyk(34.2%, 62%, 0%, 27.8%)
CIE-LABlab(41.07, 44.96, -52.38)
CIE-LCHlch(41.07, 69.03, 310.64°)
OKLaboklab(51.13% 0.0895 -0.1487)
OKLCHoklch(51.13% 0.174 301)
XYZxyz(18.7250, 11.9059, 46.6497)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946B8 #85B846
analogous
#464CB8 #7946B8 #B246B8
triadic
#7946B8 #B87946 #46B879
tetradic
#7946B8 #B8464C #85B846 #46B8B2
square
#7946B8 #B8464C #85B846 #46B8B2
split-complementary
#7946B8 #B8B246 #4CB846
monochromatic
#3F245F #5C358C #7946B8 #9972C9 #B99EDA

Accessibility & contrast

On white

6.21
#7946B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7946B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946B8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946B8#FFFFFF#000000##FFFFFF
##7946B81.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#1F60B5
Tritanopia (blue-blind)
#6C5E78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7946b8;
/* rgb */ color: rgb(121, 70, 184);
/* oklch */ color: oklch(51.1% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#a47cce',
    500: '#7946b8',
    950: '#000000',
  },
}
SCSS
$custom: #7946b8;
$custom-light: #a47cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7946b8",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 184
  },
  "hsl": {
    "h": 266.842,
    "s": 44.882,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51128,
    "c": 0.17353,
    "h": 301
  },
  "luminance": 0.11906
}

Semantic roles & 50–950 ramp

primary
#7946B8
secondary
#B0C793
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7946B8

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

Preview Lab → · Contrast checker → · Palette generator →

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