#7C1EA1#7C1EA1

#7C1EA1 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.199 H 313.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7C1EA1
RGBrgb(124, 30, 161)
HSLhsl(283, 69%, 37%)
HSVhsv(283, 81%, 63%)
CMYKcmyk(23%, 81.4%, 0%, 36.9%)
CIE-LABlab(33.54, 57.93, -50.83)
CIE-LCHlch(33.54, 77.07, 318.74°)
OKLaboklab(45.32% 0.1378 -0.1438)
OKLCHoklch(45.32% 0.199 313.8)
XYZxyz(15.2084, 7.7874, 34.4133)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1EA1 #43A11E
analogous
#3A1EA1 #7C1EA1 #A11E85
triadic
#7C1EA1 #A17C1E #1EA17C
tetradic
#7C1EA1 #A13A1E #43A11E #1E85A1
square
#7C1EA1 #A13A1E #43A11E #1E85A1
split-complementary
#7C1EA1 #85A11E #1EA13A
monochromatic
#2D0B3A #54146D #7C1EA1 #A428D5 #BA59E0

Accessibility & contrast

On white

8.21
#7C1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1EA1
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1EA1#FFFFFF#000000##FFFFFF
##7C1EA11.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#0D519E
Tritanopia (blue-blind)
#783E60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c1ea1;
/* rgb */ color: rgb(124, 30, 161);
/* oklch */ color: oklch(45.3% 0.199 313.8);
Tailwind
colors: {
  custom: {
    50: '#a667be',
    500: '#7c1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7c1ea1;
$custom-light: #a667be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1ea1",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 283.053,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.19912,
    "h": 313.8
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#7C1EA1
secondary
#76C457
accent
#EB3C6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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