#7F1C82#7F1C82

#7F1C82 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.176 H 326.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F1C82
RGBrgb(127, 28, 130)
HSLhsl(298, 65%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(2.3%, 78.5%, 0%, 49%)
CIE-LABlab(31.70, 53.28, -34.69)
CIE-LCHlch(31.70, 63.58, 326.94°)
OKLaboklab(43.45% 0.1472 -0.0964)
OKLCHoklch(43.45% 0.176 326.8)
XYZxyz(13.1967, 6.9552, 21.7622)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C82 #1F821C
analogous
#4C1C82 #7F1C82 #821C52
triadic
#7F1C82 #827F1C #1C827F
tetradic
#7F1C82 #824C1C #1F821C #1C5282
square
#7F1C82 #824C1C #1F821C #1C5282
split-complementary
#7F1C82 #52821C #1C824C
monochromatic
#1D061D #4E1150 #7F1C82 #B027B4 #D242D6

Accessibility & contrast

On white

8.78
#7F1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C82
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C82#FFFFFF#000000##FFFFFF
##7F1C821.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#832E4E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1c82;
/* rgb */ color: rgb(127, 28, 130);
/* oklch */ color: oklch(43.5% 0.176 326.8);
Tailwind
colors: {
  custom: {
    50: '#a865a7',
    500: '#7f1c82',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c82;
$custom-light: #a865a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c82",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 298.235,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43454,
    "c": 0.17593,
    "h": 326.8
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#7F1C82
secondary
#48B544
accent
#E84045
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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