#7F1C9F#7F1C9F

#7F1C9F is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.200 H 315.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7F1C9F
RGBrgb(127, 28, 159)
HSLhsl(285, 70%, 37%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(20.1%, 82.4%, 0%, 37.6%)
CIE-LABlab(33.66, 58.67, -49.39)
CIE-LCHlch(33.66, 76.69, 319.91°)
OKLaboklab(45.46% 0.1436 -0.1394)
OKLCHoklch(45.46% 0.2 315.8)
XYZxyz(15.4247, 7.8464, 33.4962)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C9F #3C9F1C
analogous
#3E1C9F #7F1C9F #9F1C7D
triadic
#7F1C9F #9F7F1C #1C9F7F
tetradic
#7F1C9F #9F3E1C #3C9F1C #1C7D9F
square
#7F1C9F #9F3E1C #3C9F1C #1C7D9F
split-complementary
#7F1C9F #7D9F1C #1C9F3E
monochromatic
#2C0A37 #55136B #7F1C9F #A925D3 #BF54E1

Accessibility & contrast

On white

8.17
#7F1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C9F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C9F#FFFFFF#000000##FFFFFF
##7F1C9F1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#18529C
Tritanopia (blue-blind)
#7D3C5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1c9f;
/* rgb */ color: rgb(127, 28, 159);
/* oklch */ color: oklch(45.5% 0.200 315.8);
Tailwind
colors: {
  custom: {
    50: '#a966bc',
    500: '#7f1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c9f;
$custom-light: #a966bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c9f",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 285.344,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45458,
    "c": 0.20013,
    "h": 315.8
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#7F1C9F
secondary
#6EC453
accent
#ED3B66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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