#7F1C84#7F1C84

#7F1C84 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.178 H 325.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7F1C84
RGBrgb(127, 28, 132)
HSLhsl(297, 65%, 31%)
HSVhsv(297, 79%, 52%)
CMYKcmyk(3.8%, 78.8%, 0%, 48.2%)
CIE-LABlab(31.83, 53.63, -35.74)
CIE-LCHlch(31.83, 64.45, 326.32°)
OKLaboklab(43.58% 0.1471 -0.0994)
OKLCHoklch(43.58% 0.178 325.9)
XYZxyz(13.3322, 7.0094, 22.4761)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C84 #21841C
analogous
#4B1C84 #7F1C84 #841C55
triadic
#7F1C84 #847F1C #1C847F
tetradic
#7F1C84 #844B1C #21841C #1C5584
square
#7F1C84 #844B1C #21841C #1C5584
split-complementary
#7F1C84 #55841C #1C844B
monochromatic
#1E071F #4E1152 #7F1C84 #B027B6 #D043D7

Accessibility & contrast

On white

8.74
#7F1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C84
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C84#FFFFFF#000000##FFFFFF
##7F1C841.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#354F82
Tritanopia (blue-blind)
#822F4F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1c84;
/* rgb */ color: rgb(127, 28, 132);
/* oklch */ color: oklch(43.6% 0.178 325.9);
Tailwind
colors: {
  custom: {
    50: '#a865a8',
    500: '#7f1c84',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c84;
$custom-light: #a865a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c84",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 297.115,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.17755,
    "h": 325.9
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#7F1C84
secondary
#4AB745
accent
#E84048
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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