#7C1FA7#7C1FA7

#7C1FA7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 45.9% C 0.204 H 311.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7C1FA7
RGBrgb(124, 31, 167)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(25.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(34.10, 58.84, -53.53)
CIE-LCHlch(34.10, 79.55, 317.70°)
OKLaboklab(45.86% 0.1357 -0.1517)
OKLCHoklch(45.86% 0.204 311.8)
XYZxyz(15.7759, 8.0555, 37.2756)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FA7 #4AA71F
analogous
#381FA7 #7C1FA7 #A71F8E
triadic
#7C1FA7 #A77C1F #1FA77C
tetradic
#7C1FA7 #A7381F #4AA71F #1F8EA7
square
#7C1FA7 #A7381F #4AA71F #1F8EA7
split-complementary
#7C1FA7 #8EA71F #1FA738
monochromatic
#2F0C40 #561573 #7C1FA7 #A12BD8 #B85FE1

Accessibility & contrast

On white

8.04
#7C1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FA7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FA7#FFFFFF#000000##FFFFFF
##7C1FA71.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#774264
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c1fa7;
/* rgb */ color: rgb(124, 31, 167);
/* oklch */ color: oklch(45.9% 0.204 311.8);
Tailwind
colors: {
  custom: {
    50: '#a767c2',
    500: '#7c1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fa7;
$custom-light: #a767c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fa7",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 281.029,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.20355,
    "h": 311.8
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#7C1FA7
secondary
#7DC65C
accent
#EC3C74
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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