#7946AA#7946AA

#7946AA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.157 H 304.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7946AA
RGBrgb(121, 70, 170)
HSLhsl(271, 42%, 47%)
HSVhsv(271, 59%, 67%)
CMYKcmyk(28.8%, 58.8%, 0%, 33.3%)
CIE-LABlab(40.16, 41.45, -45.57)
CIE-LCHlch(40.16, 61.60, 312.29°)
OKLaboklab(50.18% 0.0898 -0.1287)
OKLCHoklch(50.18% 0.157 304.9)
XYZxyz(17.3294, 11.3476, 39.2998)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946AA #77AA46
analogous
#4746AA #7946AA #AA46A9
triadic
#7946AA #AA7946 #46AA79
tetradic
#7946AA #AA4746 #77AA46 #46A9AA
square
#7946AA #AA4746 #77AA46 #46A9AA
split-complementary
#7946AA #A9AA46 #46AA47
monochromatic
#3B2253 #5A347F #7946AA #976BC2 #B696D4

Accessibility & contrast

On white

6.42
#7946AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7946AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7946AA#FFFFFF#000000##FFFFFF
##7946AA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5DAD
Deuteranopia (green-blind)
#325FA8
Tritanopia (blue-blind)
#705A71
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7946aa;
/* rgb */ color: rgb(121, 70, 170);
/* oklch */ color: oklch(50.2% 0.157 304.9);
Tailwind
colors: {
  custom: {
    50: '#a37cc4',
    500: '#7946aa',
    950: '#000000',
  },
}
SCSS
$custom: #7946aa;
$custom-light: #a37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7946aa",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 270.6,
    "s": 41.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50177,
    "c": 0.15693,
    "h": 304.9
  },
  "luminance": 0.11348
}

Semantic roles & 50–950 ramp

primary
#7946AA
secondary
#A5C08C
accent
#D15693
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7946AA

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

Preview Lab → · Contrast checker → · Palette generator →

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