#7C1F8A#7C1F8A

#7C1F8A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.178 H 322.0°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7C1F8A
RGBrgb(124, 31, 138)
HSLhsl(292, 63%, 33%)
HSVhsv(292, 78%, 54%)
CMYKcmyk(10.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(32.04, 53.11, -39.17)
CIE-LCHlch(32.04, 65.99, 323.59°)
OKLaboklab(43.75% 0.1404 -0.1096)
OKLCHoklch(43.75% 0.178 322)
XYZxyz(13.3891, 7.1008, 24.7052)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F8A #2D8A1F
analogous
#471F8A #7C1F8A #8A1F62
triadic
#7C1F8A #8A7C1F #1F8A7C
tetradic
#7C1F8A #8A471F #2D8A1F #1F628A
square
#7C1F8A #8A471F #2D8A1F #1F628A
split-complementary
#7C1F8A #628A1F #1F8A47
monochromatic
#220926 #4F1458 #7C1F8A #A92ABC #C54CD7

Accessibility & contrast

On white

8.68
#7C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F8A
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F8A#FFFFFF#000000##FFFFFF
##7C1F8A1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#7D3454
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c1f8a;
/* rgb */ color: rgb(124, 31, 138);
/* oklch */ color: oklch(43.8% 0.178 322.0);
Tailwind
colors: {
  custom: {
    50: '#a566ad',
    500: '#7c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f8a;
$custom-light: #a566ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f8a",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 292.15,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43751,
    "c": 0.17813,
    "h": 322
  },
  "luminance": 0.071
}

Semantic roles & 50–950 ramp

primary
#7C1F8A
secondary
#5ABA4B
accent
#E64157
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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