#7946AB#7946AB

#7946AB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.2% C 0.158 H 304.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7946AB
RGBrgb(121, 70, 171)
HSLhsl(270, 42%, 47%)
HSVhsv(270, 59%, 67%)
CMYKcmyk(29.2%, 59.1%, 0%, 32.9%)
CIE-LABlab(40.22, 41.70, -46.07)
CIE-LCHlch(40.22, 62.14, 312.15°)
OKLaboklab(50.24% 0.0898 -0.1301)
OKLCHoklch(50.24% 0.158 304.6)
XYZxyz(17.4244, 11.3856, 39.7999)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946AB #78AB46
analogous
#4646AB #7946AB #AB46AB
triadic
#7946AB #AB7946 #46AB79
tetradic
#7946AB #AB4646 #78AB46 #46ABAB
square
#7946AB #AB4646 #78AB46 #46ABAB
split-complementary
#7946AB #ABAB46 #46AB46
monochromatic
#3C2254 #5A3480 #7946AB #986CC3 #B697D4

Accessibility & contrast

On white

6.41
#7946AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7946AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7946AB#FFFFFF#000000##FFFFFF
##7946AB1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAE
Deuteranopia (green-blind)
#305FA9
Tritanopia (blue-blind)
#705A72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7946ab;
/* rgb */ color: rgb(121, 70, 171);
/* oklch */ color: oklch(50.2% 0.158 304.6);
Tailwind
colors: {
  custom: {
    50: '#a37cc4',
    500: '#7946ab',
    950: '#000000',
  },
}
SCSS
$custom: #7946ab;
$custom-light: #a37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7946ab",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 171
  },
  "hsl": {
    "h": 270.297,
    "s": 41.909,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.15812,
    "h": 304.6
  },
  "luminance": 0.11386
}

Semantic roles & 50–950 ramp

primary
#7946AB
secondary
#A6C08C
accent
#D25693
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7946AB

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

Preview Lab → · Contrast checker → · Palette generator →

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