#7F1C9D#7F1C9D

#7F1C9D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.198 H 316.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F1C9D
RGBrgb(127, 28, 157)
HSLhsl(286, 70%, 36%)
HSVhsv(286, 82%, 62%)
CMYKcmyk(19.1%, 82.2%, 0%, 38.4%)
CIE-LABlab(33.52, 58.28, -48.41)
CIE-LCHlch(33.52, 75.77, 320.28°)
OKLaboklab(45.31% 0.144 -0.1366)
OKLCHoklch(45.31% 0.198 316.5)
XYZxyz(15.2525, 7.7775, 32.5895)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C9D #3A9D1C
analogous
#3F1C9D #7F1C9D #9D1C7B
triadic
#7F1C9D #9D7F1C #1C9D7F
tetradic
#7F1C9D #9D3F1C #3A9D1C #1C7B9D
square
#7F1C9D #9D3F1C #3A9D1C #1C7B9D
split-complementary
#7F1C9D #7B9D1C #1C9D3F
monochromatic
#2B0935 #551369 #7F1C9D #A925D1 #BF53E0

Accessibility & contrast

On white

8.22
#7F1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C9D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C9D#FFFFFF#000000##FFFFFF
##7F1C9D1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#1B519A
Tritanopia (blue-blind)
#7D3B5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1c9d;
/* rgb */ color: rgb(127, 28, 157);
/* oklch */ color: oklch(45.3% 0.198 316.5);
Tailwind
colors: {
  custom: {
    50: '#a866bb',
    500: '#7f1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c9d;
$custom-light: #a866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c9d",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 286.047,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.19843,
    "h": 316.5
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#7F1C9D
secondary
#6CC351
accent
#ED3B64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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