#7F1C8C#7F1C8C

#7F1C8C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.184 H 322.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7F1C8C
RGBrgb(127, 28, 140)
HSLhsl(293, 67%, 33%)
HSVhsv(293, 80%, 55%)
CMYKcmyk(9.3%, 80%, 0%, 45.1%)
CIE-LABlab(32.34, 55.07, -39.89)
CIE-LCHlch(32.34, 68.00, 324.08°)
OKLaboklab(44.11% 0.1465 -0.1116)
OKLCHoklch(44.11% 0.184 322.7)
XYZxyz(13.9008, 7.2368, 25.4705)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C8C #298C1C
analogous
#471C8C #7F1C8C #8C1C61
triadic
#7F1C8C #8C7F1C #1C8C7F
tetradic
#7F1C8C #8C471C #298C1C #1C618C
square
#7F1C8C #8C471C #298C1C #1C618C
split-complementary
#7F1C8C #618C1C #1C8C47
monochromatic
#220826 #511259 #7F1C8C #AD26BF #C948DA

Accessibility & contrast

On white

8.58
#7F1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1C8C
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C8C#FFFFFF#000000##FFFFFF
##7F1C8C1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#2F5089
Tritanopia (blue-blind)
#813354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1c8c;
/* rgb */ color: rgb(127, 28, 140);
/* oklch */ color: oklch(44.1% 0.184 322.7);
Tailwind
colors: {
  custom: {
    50: '#a865ae',
    500: '#7f1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c8c;
$custom-light: #a865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c8c",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 293.036,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44108,
    "c": 0.18411,
    "h": 322.7
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#7F1C8C
secondary
#55BC48
accent
#EA3E52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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