#7947AC#7947AC

#7947AC is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.5% C 0.158 H 304.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7947AC
RGBrgb(121, 71, 172)
HSLhsl(270, 42%, 48%)
HSVhsv(270, 59%, 67%)
CMYKcmyk(29.7%, 58.7%, 0%, 32.5%)
CIE-LABlab(40.49, 41.40, -46.23)
CIE-LCHlch(40.49, 62.05, 311.85°)
OKLaboklab(50.46% 0.0886 -0.1306)
OKLCHoklch(50.46% 0.158 304.1)
XYZxyz(17.5831, 11.5500, 40.3248)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7947AC #7AAC47
analogous
#4747AC #7947AC #AC47AC
triadic
#7947AC #AC7947 #47AC79
tetradic
#7947AC #AC4747 #7AAC47 #47ACAC
square
#7947AC #AC4747 #7AAC47 #47ACAC
split-complementary
#7947AC #ACAC47 #47AC47
monochromatic
#3C2355 #5B3581 #7947AC #986DC3 #B699D5

Accessibility & contrast

On white

6.34
#7947AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7947AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7947AC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7947AC#FFFFFF#000000##FFFFFF
##7947AC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#315FAA
Tritanopia (blue-blind)
#705B72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7947ac;
/* rgb */ color: rgb(121, 71, 172);
/* oklch */ color: oklch(50.5% 0.158 304.1);
Tailwind
colors: {
  custom: {
    50: '#a37cc5',
    500: '#7947ac',
    950: '#000000',
  },
}
SCSS
$custom: #7947ac;
$custom-light: #a37cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7947ac",
  "rgb": {
    "r": 121,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 269.703,
    "s": 41.564,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.15778,
    "h": 304.1
  },
  "luminance": 0.1155
}

Semantic roles & 50–950 ramp

primary
#7947AC
secondary
#A8C18E
accent
#D15695
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7947AC

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

Preview Lab → · Contrast checker → · Palette generator →

#7947AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva