#7C1FA1#7C1FA1

#7C1FA1 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.198 H 313.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7C1FA1
RGBrgb(124, 31, 161)
HSLhsl(283, 68%, 38%)
HSVhsv(283, 81%, 63%)
CMYKcmyk(23%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.64, 57.61, -50.65)
CIE-LCHlch(33.64, 76.71, 318.68°)
OKLaboklab(45.4% 0.137 -0.1433)
OKLCHoklch(45.4% 0.198 313.7)
XYZxyz(15.2341, 7.8388, 34.4219)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1FA1 #44A11F
analogous
#3B1FA1 #7C1FA1 #A11F85
triadic
#7C1FA1 #A17C1F #1FA17C
tetradic
#7C1FA1 #A13B1F #44A11F #1F85A1
square
#7C1FA1 #A13B1F #44A11F #1F85A1
split-complementary
#7C1FA1 #85A11F #1FA13B
monochromatic
#2D0B3A #54156E #7C1FA1 #A429D4 #BA5BDF

Accessibility & contrast

On white

8.18
#7C1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1FA1
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1FA1#FFFFFF#000000##FFFFFF
##7C1FA11.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c1fa1;
/* rgb */ color: rgb(124, 31, 161);
/* oklch */ color: oklch(45.4% 0.198 313.7);
Tailwind
colors: {
  custom: {
    50: '#a667be',
    500: '#7c1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7c1fa1;
$custom-light: #a667be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1fa1",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 282.923,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45397,
    "c": 0.19822,
    "h": 313.7
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#7C1FA1
secondary
#77C458
accent
#EB3D6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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