#7A47C6#7A47C6

#7A47C6 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.189 H 298.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7A47C6
RGBrgb(122, 71, 198)
HSLhsl(264, 53%, 53%)
HSVhsv(264, 64%, 78%)
CMYKcmyk(38.4%, 64.1%, 0%, 22.4%)
CIE-LABlab(42.34, 48.24, -58.49)
CIE-LCHlch(42.34, 75.82, 309.51°)
OKLaboklab(52.38% 0.0887 -0.1666)
OKLCHoklch(52.38% 0.189 298)
XYZxyz(20.4697, 12.7210, 54.7921)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A47C6 #93C647
analogous
#4754C6 #7A47C6 #B947C6
triadic
#7A47C6 #C67A47 #47C67A
tetradic
#7A47C6 #C64754 #93C647 #47C6B9
square
#7A47C6 #C64754 #93C647 #47C6B9
split-complementary
#7A47C6 #C6B947 #54C647
monochromatic
#422370 #5D319F #7A47C6 #9C76D4 #BEA4E3

Accessibility & contrast

On white

5.93
#7A47C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7A47C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A47C6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A47C6#FFFFFF#000000##FFFFFF
##7A47C61.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#686480
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a47c6;
/* rgb */ color: rgb(122, 71, 198);
/* oklch */ color: oklch(52.4% 0.189 298.0);
Tailwind
colors: {
  custom: {
    50: '#a67dd8',
    500: '#7a47c6',
    950: '#000000',
  },
}
SCSS
$custom: #7a47c6;
$custom-light: #a67dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a47c6",
  "rgb": {
    "r": 122,
    "g": 71,
    "b": 198
  },
  "hsl": {
    "h": 264.094,
    "s": 52.697,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52382,
    "c": 0.18874,
    "h": 298
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#7A47C6
secondary
#BAD099
accent
#DC4CA2
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A47C6

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

Preview Lab → · Contrast checker → · Palette generator →

#7A47C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva