#7C1F97#7C1F97

#7C1F97 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.189 H 317.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7C1F97
RGBrgb(124, 31, 151)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 79%, 59%)
CMYKcmyk(17.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(32.92, 55.61, -45.74)
CIE-LCHlch(32.92, 72.01, 320.56°)
OKLaboklab(44.66% 0.1388 -0.1288)
OKLCHoklch(44.66% 0.189 317.1)
XYZxyz(14.3873, 7.5001, 29.9620)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F97 #3A971F
analogous
#401F97 #7C1F97 #971F76
triadic
#7C1F97 #977C1F #1F977C
tetradic
#7C1F97 #97401F #3A971F #1F7697
square
#7C1F97 #97401F #3A971F #1F7697
split-complementary
#7C1F97 #76971F #1F9740
monochromatic
#290A31 #521564 #7C1F97 #A629CA #BD54DC

Accessibility & contrast

On white

8.40
#7C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F97
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F97#FFFFFF#000000##FFFFFF
##7C1F971.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c1f97;
/* rgb */ color: rgb(124, 31, 151);
/* oklch */ color: oklch(44.7% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#a666b6',
    500: '#7c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f97;
$custom-light: #a666b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f97",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 286.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44658,
    "c": 0.1894,
    "h": 317.1
  },
  "luminance": 0.07499
}

Semantic roles & 50–950 ramp

primary
#7C1F97
secondary
#6BBF52
accent
#E93F65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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