#7C1EAD#7C1EAD

#7C1EAD is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.3% C 0.210 H 310.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7C1EAD
RGBrgb(124, 30, 173)
HSLhsl(279, 70%, 40%)
HSVhsv(279, 83%, 68%)
CMYKcmyk(28.3%, 82.7%, 0%, 32.2%)
CIE-LABlab(34.46, 60.39, -56.55)
CIE-LCHlch(34.46, 82.73, 316.89°)
OKLaboklab(46.26% 0.1349 -0.1606)
OKLCHoklch(46.26% 0.21 310)
XYZxyz(16.3178, 8.2311, 40.2562)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1EAD #4FAD1E
analogous
#351EAD #7C1EAD #AD1E96
triadic
#7C1EAD #AD7C1E #1EAD7C
tetradic
#7C1EAD #AD351E #4FAD1E #1E96AD
square
#7C1EAD #AD351E #4FAD1E #1E96AD
split-complementary
#7C1EAD #96AD1E #1EAD35
monochromatic
#310C45 #571579 #7C1EAD #9F2EDB #B762E4

Accessibility & contrast

On white

7.94
#7C1EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C1EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1EAD
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1EAD#FFFFFF#000000##FFFFFF
##7C1EAD1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#754467
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c1ead;
/* rgb */ color: rgb(124, 30, 173);
/* oklch */ color: oklch(46.3% 0.210 310.0);
Tailwind
colors: {
  custom: {
    50: '#a767c6',
    500: '#7c1ead',
    950: '#000000',
  },
}
SCSS
$custom: #7c1ead;
$custom-light: #a767c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1ead",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 173
  },
  "hsl": {
    "h": 279.441,
    "s": 70.443,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46255,
    "c": 0.20974,
    "h": 310
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#7C1EAD
secondary
#83C85E
accent
#ED3B78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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