#7946AD#7946AD

#7946AD is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.4% C 0.160 H 304.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7946AD
RGBrgb(121, 70, 173)
HSLhsl(270, 42%, 48%)
HSVhsv(270, 60%, 68%)
CMYKcmyk(30.1%, 59.5%, 0%, 32.2%)
CIE-LABlab(40.35, 42.20, -47.05)
CIE-LCHlch(40.35, 63.20, 311.89°)
OKLaboklab(50.38% 0.0898 -0.133)
OKLCHoklch(50.38% 0.16 304)
XYZxyz(17.6165, 11.4625, 40.8115)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946AD #7AAD46
analogous
#4646AD #7946AD #AD46AD
triadic
#7946AD #AD7946 #46AD79
tetradic
#7946AD #AD4646 #7AAD46 #46ADAD
square
#7946AD #AD4646 #7AAD46 #46ADAD
split-complementary
#7946AD #ADAD46 #46AD46
monochromatic
#3C2356 #5B3481 #7946AD #986CC4 #B698D5

Accessibility & contrast

On white

6.38
#7946AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7946AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946AD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946AD#FFFFFF#000000##FFFFFF
##7946AD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165EB0
Deuteranopia (green-blind)
#2E5FAB
Tritanopia (blue-blind)
#705B73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7946ad;
/* rgb */ color: rgb(121, 70, 173);
/* oklch */ color: oklch(50.4% 0.160 304.0);
Tailwind
colors: {
  custom: {
    50: '#a37cc6',
    500: '#7946ad',
    950: '#000000',
  },
}
SCSS
$custom: #7946ad;
$custom-light: #a37cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7946ad",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 173
  },
  "hsl": {
    "h": 269.709,
    "s": 42.387,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50376,
    "c": 0.16049,
    "h": 304
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

primary
#7946AD
secondary
#A8C18D
accent
#D25695
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7946AD

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

Preview Lab → · Contrast checker → · Palette generator →

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