#7F1C8E#7F1C8E

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

Color values

HEX#7F1C8E
RGBrgb(127, 28, 142)
HSLhsl(292, 67%, 33%)
HSVhsv(292, 80%, 56%)
CMYKcmyk(10.6%, 80.3%, 0%, 44.3%)
CIE-LABlab(32.47, 55.44, -40.91)
CIE-LCHlch(32.47, 68.90, 323.57°)
OKLaboklab(44.24% 0.1462 -0.1146)
OKLCHoklch(44.24% 0.186 321.9)
XYZxyz(14.0496, 7.2963, 26.2542)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C8E #2B8E1C
analogous
#461C8E #7F1C8E #8E1C64
triadic
#7F1C8E #8E7F1C #1C8E7F
tetradic
#7F1C8E #8E461C #2B8E1C #1C648E
square
#7F1C8E #8E461C #2B8E1C #1C648E
split-complementary
#7F1C8E #648E1C #1C8E46
monochromatic
#240828 #51125B #7F1C8E #AD26C1 #C849DB

Accessibility & contrast

On white

8.54
#7F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C8E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C8E#FFFFFF#000000##FFFFFF
##7F1C8E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#2D508B
Tritanopia (blue-blind)
#803455
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1c8e;
/* rgb */ color: rgb(127, 28, 142);
/* oklch */ color: oklch(44.2% 0.186 321.9);
Tailwind
colors: {
  custom: {
    50: '#a865b0',
    500: '#7f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c8e;
$custom-light: #a865b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c8e",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 292.105,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44244,
    "c": 0.18578,
    "h": 321.9
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#7F1C8E
secondary
#58BD49
accent
#EA3E54
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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