#7C46C2#7C46C2

#7C46C2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.186 H 300.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7C46C2
RGBrgb(124, 70, 194)
HSLhsl(266, 50%, 52%)
HSVhsv(266, 64%, 76%)
CMYKcmyk(36.1%, 63.9%, 0%, 23.9%)
CIE-LABlab(42.09, 48.17, -56.56)
CIE-LCHlch(42.09, 74.29, 310.42°)
OKLaboklab(52.17% 0.0929 -0.1608)
OKLCHoklch(52.17% 0.186 300)
XYZxyz(20.2376, 12.5603, 52.3866)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C46C2 #8CC246
analogous
#464EC2 #7C46C2 #BA46C2
triadic
#7C46C2 #C27C46 #46C27C
tetradic
#7C46C2 #C2464E #8CC246 #46C2BA
square
#7C46C2 #C2464E #8CC246 #46C2BA
split-complementary
#7C46C2 #C2BA46 #4EC246
monochromatic
#42236A #5F3299 #7C46C2 #9D74D1 #BDA2E0

Accessibility & contrast

On white

5.98
#7C46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7C46C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C46C2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C46C2#FFFFFF#000000##FFFFFF
##7C46C21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0C62BF
Tritanopia (blue-blind)
#6D617E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c46c2;
/* rgb */ color: rgb(124, 70, 194);
/* oklch */ color: oklch(52.2% 0.186 300.0);
Tailwind
colors: {
  custom: {
    50: '#a77cd5',
    500: '#7c46c2',
    950: '#000000',
  },
}
SCSS
$custom: #7c46c2;
$custom-light: #a77cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c46c2",
  "rgb": {
    "r": 124,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 266.129,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52166,
    "c": 0.18574,
    "h": 300
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#7C46C2
secondary
#B5CD97
accent
#DA4E9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7C46C2

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

Preview Lab → · Contrast checker → · Palette generator →

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