#7C17A1#7C17A1

#7C17A1 is a dark, highly saturated purple. Relative luminance 0.075; OKLCH L 44.8% C 0.205 H 314.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7C17A1
RGBrgb(124, 23, 161)
HSLhsl(284, 75%, 36%)
HSVhsv(284, 86%, 63%)
CMYKcmyk(23%, 85.7%, 0%, 36.9%)
CIE-LABlab(32.86, 59.91, -51.93)
CIE-LCHlch(32.86, 79.28, 319.08°)
OKLaboklab(44.85% 0.1426 -0.147)
OKLCHoklch(44.85% 0.205 314.1)
XYZxyz(15.0505, 7.4716, 34.3607)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C17A1 #3CA117
analogous
#3717A1 #7C17A1 #A11781
triadic
#7C17A1 #A17C17 #17A17C
tetradic
#7C17A1 #A13717 #3CA117 #1781A1
square
#7C17A1 #A13717 #3CA117 #1781A1
split-complementary
#7C17A1 #81A117 #17A137
monochromatic
#2A0836 #530F6B #7C17A1 #A51FD7 #BD4DE6

Accessibility & contrast

On white

8.42
#7C17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7C17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C17A1
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C17A1#FFFFFF#000000##FFFFFF
##7C17A11.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#014F9E
Tritanopia (blue-blind)
#783C5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c17a1;
/* rgb */ color: rgb(124, 23, 161);
/* oklch */ color: oklch(44.8% 0.205 314.1);
Tailwind
colors: {
  custom: {
    50: '#a764be',
    500: '#7c17a1',
    950: '#000000',
  },
}
SCSS
$custom: #7c17a1;
$custom-light: #a764be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c17a1",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 283.913,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44847,
    "c": 0.2048,
    "h": 314.1
  },
  "luminance": 0.07471
}

Semantic roles & 50–950 ramp

primary
#7C17A1
secondary
#6DC74C
accent
#F23668
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7C17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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