#7F1C8D#7F1C8D

#7F1C8D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.185 H 322.3°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7F1C8D
RGBrgb(127, 28, 141)
HSLhsl(293, 67%, 33%)
HSVhsv(293, 80%, 55%)
CMYKcmyk(9.9%, 80.1%, 0%, 44.7%)
CIE-LABlab(32.41, 55.25, -40.40)
CIE-LCHlch(32.41, 68.45, 323.83°)
OKLaboklab(44.18% 0.1464 -0.1131)
OKLCHoklch(44.18% 0.185 322.3)
XYZxyz(13.9749, 7.2664, 25.8606)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C8D #2A8D1C
analogous
#461C8D #7F1C8D #8D1C62
triadic
#7F1C8D #8D7F1C #1C8D7F
tetradic
#7F1C8D #8D461C #2A8D1C #1C628D
square
#7F1C8D #8D461C #2A8D1C #1C628D
split-complementary
#7F1C8D #628D1C #1C8D46
monochromatic
#230827 #51125A #7F1C8D #AD26C0 #C949DB

Accessibility & contrast

On white

8.56
#7F1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C8D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C8D#FFFFFF#000000##FFFFFF
##7F1C8D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2E508A
Tritanopia (blue-blind)
#813355
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1c8d;
/* rgb */ color: rgb(127, 28, 141);
/* oklch */ color: oklch(44.2% 0.185 322.3);
Tailwind
colors: {
  custom: {
    50: '#a865af',
    500: '#7f1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c8d;
$custom-light: #a865af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c8d",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 292.566,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44176,
    "c": 0.18494,
    "h": 322.3
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#7F1C8D
secondary
#57BD48
accent
#EA3E53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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