#7947C5#7947C5

#7947C5 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.187 H 297.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7947C5
RGBrgb(121, 71, 197)
HSLhsl(264, 52%, 53%)
HSVhsv(264, 64%, 77%)
CMYKcmyk(38.6%, 64%, 0%, 22.7%)
CIE-LABlab(42.16, 47.77, -58.21)
CIE-LCHlch(42.16, 75.31, 309.37°)
OKLaboklab(52.2% 0.0874 -0.1658)
OKLCHoklch(52.2% 0.187 297.8)
XYZxyz(20.2139, 12.6023, 54.1800)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7947C5 #93C547
analogous
#4754C5 #7947C5 #B847C5
triadic
#7947C5 #C57947 #47C579
tetradic
#7947C5 #C54754 #93C547 #47C5B8
square
#7947C5 #C54754 #93C547 #47C5B8
split-complementary
#7947C5 #C5B847 #54C547
monochromatic
#41236F #5C329D #7947C5 #9B76D4 #BDA4E2

Accessibility & contrast

On white

5.96
#7947C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7947C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7947C5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7947C5#FFFFFF#000000##FFFFFF
##7947C51.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#676380
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7947c5;
/* rgb */ color: rgb(121, 71, 197);
/* oklch */ color: oklch(52.2% 0.187 297.8);
Tailwind
colors: {
  custom: {
    50: '#a57dd7',
    500: '#7947c5',
    950: '#000000',
  },
}
SCSS
$custom: #7947c5;
$custom-light: #a57dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7947c5",
  "rgb": {
    "r": 121,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 263.81,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52203,
    "c": 0.18745,
    "h": 297.8
  },
  "luminance": 0.12603
}

Semantic roles & 50–950 ramp

primary
#7947C5
secondary
#BACF99
accent
#DC4CA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7947C5

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

Preview Lab → · Contrast checker → · Palette generator →

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