#7C1EA6#7C1EA6

#7C1EA6 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.7% C 0.204 H 312.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7C1EA6
RGBrgb(124, 30, 166)
HSLhsl(281, 69%, 38%)
HSVhsv(281, 82%, 65%)
CMYKcmyk(25.3%, 81.9%, 0%, 34.9%)
CIE-LABlab(33.91, 58.95, -53.23)
CIE-LCHlch(33.91, 79.42, 317.92°)
OKLaboklab(45.71% 0.1367 -0.1508)
OKLCHoklch(45.71% 0.204 312.2)
XYZxyz(15.6581, 7.9673, 36.7820)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1EA6 #48A61E
analogous
#381EA6 #7C1EA6 #A61E8C
triadic
#7C1EA6 #A67C1E #1EA67C
tetradic
#7C1EA6 #A6381E #48A61E #1E8CA6
square
#7C1EA6 #A6381E #48A61E #1E8CA6
split-complementary
#7C1EA6 #8CA61E #1EA638
monochromatic
#2F0B3E #551572 #7C1EA6 #A229D8 #B95DE2

Accessibility & contrast

On white

8.10
#7C1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1EA6
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1EA6#FFFFFF#000000##FFFFFF
##7C1EA61.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#774163
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c1ea6;
/* rgb */ color: rgb(124, 30, 166);
/* oklch */ color: oklch(45.7% 0.204 312.2);
Tailwind
colors: {
  custom: {
    50: '#a767c1',
    500: '#7c1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7c1ea6;
$custom-light: #a767c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1ea6",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 281.471,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.20353,
    "h": 312.2
  },
  "luminance": 0.07967
}

Semantic roles & 50–950 ramp

primary
#7C1EA6
secondary
#7BC65A
accent
#EC3C72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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