#7C1AB4#7C1AB4

#7C1AB4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.219 H 308.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7C1AB4
RGBrgb(124, 26, 180)
HSLhsl(278, 75%, 40%)
HSVhsv(278, 86%, 71%)
CMYKcmyk(31.1%, 85.6%, 0%, 29.4%)
CIE-LABlab(34.64, 62.99, -60.43)
CIE-LCHlch(34.64, 87.28, 316.19°)
OKLaboklab(46.56% 0.1356 -0.1719)
OKLCHoklch(46.56% 0.219 308.3)
XYZxyz(16.9181, 8.3194, 43.8857)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1AB4 #52B41A
analogous
#2F1AB4 #7C1AB4 #B41A9F
triadic
#7C1AB4 #B47C1A #1AB47C
tetradic
#7C1AB4 #B42F1A #52B41A #1A9FB4
square
#7C1AB4 #B42F1A #52B41A #1A9FB4
split-complementary
#7C1AB4 #9FB41A #1AB42F
monochromatic
#320B49 #57127F #7C1AB4 #9E2BE0 #B760E8

Accessibility & contrast

On white

7.88
#7C1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1AB4
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1AB4#FFFFFF#000000##FFFFFF
##7C1AB41.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#73466B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c1ab4;
/* rgb */ color: rgb(124, 26, 180);
/* oklch */ color: oklch(46.6% 0.219 308.3);
Tailwind
colors: {
  custom: {
    50: '#a866cb',
    500: '#7c1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7c1ab4;
$custom-light: #a866cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1ab4",
  "rgb": {
    "r": 124,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 278.182,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.21896,
    "h": 308.3
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#7C1AB4
secondary
#86CC5D
accent
#F1367A
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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