#7F1C8F#7F1C8F

#7F1C8F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.187 H 321.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7F1C8F
RGBrgb(127, 28, 143)
HSLhsl(292, 67%, 34%)
HSVhsv(292, 80%, 56%)
CMYKcmyk(11.2%, 80.4%, 0%, 43.9%)
CIE-LABlab(32.54, 55.62, -41.42)
CIE-LCHlch(32.54, 69.35, 323.33°)
OKLaboklab(44.31% 0.1461 -0.1161)
OKLCHoklch(44.31% 0.187 321.5)
XYZxyz(14.1250, 7.3265, 26.6514)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C8F #2C8F1C
analogous
#451C8F #7F1C8F #8F1C65
triadic
#7F1C8F #8F7F1C #1C8F7F
tetradic
#7F1C8F #8F451C #2C8F1C #1C658F
square
#7F1C8F #8F451C #2C8F1C #1C658F
split-complementary
#7F1C8F #658F1C #1C8F45
monochromatic
#240829 #52125C #7F1C8F #AC26C2 #C74ADC

Accessibility & contrast

On white

8.52
#7F1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C8F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C8F#FFFFFF#000000##FFFFFF
##7F1C8F1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#2C508C
Tritanopia (blue-blind)
#803456
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1c8f;
/* rgb */ color: rgb(127, 28, 143);
/* oklch */ color: oklch(44.3% 0.187 321.5);
Tailwind
colors: {
  custom: {
    50: '#a865b0',
    500: '#7f1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c8f;
$custom-light: #a865b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c8f",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 291.652,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44313,
    "c": 0.1866,
    "h": 321.5
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#7F1C8F
secondary
#59BE49
accent
#EA3E56
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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