#7C1E97#7C1E97

#7C1E97 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.190 H 317.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7C1E97
RGBrgb(124, 30, 151)
HSLhsl(287, 67%, 35%)
HSVhsv(287, 80%, 59%)
CMYKcmyk(17.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(32.81, 55.94, -45.92)
CIE-LCHlch(32.81, 72.37, 320.61°)
OKLaboklab(44.58% 0.1397 -0.1294)
OKLCHoklch(44.58% 0.19 317.2)
XYZxyz(14.3615, 7.4486, 29.9534)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1E97 #39971E
analogous
#401E97 #7C1E97 #971E75
triadic
#7C1E97 #977C1E #1E977C
tetradic
#7C1E97 #97401E #39971E #1E7597
square
#7C1E97 #97401E #39971E #1E7597
split-complementary
#7C1E97 #75971E #1E9740
monochromatic
#280A31 #521464 #7C1E97 #A628CA #BE53DD

Accessibility & contrast

On white

8.44
#7C1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1E97
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1E97#FFFFFF#000000##FFFFFF
##7C1E971.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#205094
Tritanopia (blue-blind)
#7B3A5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c1e97;
/* rgb */ color: rgb(124, 30, 151);
/* oklch */ color: oklch(44.6% 0.190 317.2);
Tailwind
colors: {
  custom: {
    50: '#a666b6',
    500: '#7c1e97',
    950: '#000000',
  },
}
SCSS
$custom: #7c1e97;
$custom-light: #a666b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1e97",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 286.612,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44579,
    "c": 0.19037,
    "h": 317.2
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#7C1E97
secondary
#6AC051
accent
#EA3E64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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