#7F1D9C#7F1D9C

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

Color values

HEX#7F1D9C
RGBrgb(127, 29, 156)
HSLhsl(286, 69%, 36%)
HSVhsv(286, 81%, 61%)
CMYKcmyk(18.6%, 81.4%, 0%, 38.8%)
CIE-LABlab(33.55, 57.79, -47.76)
CIE-LCHlch(33.55, 74.97, 320.43°)
OKLaboklab(45.31% 0.1434 -0.1346)
OKLCHoklch(45.31% 0.197 316.8)
XYZxyz(15.1916, 7.7917, 32.1498)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D9C #3A9C1D
analogous
#401D9C #7F1D9C #9C1D7A
triadic
#7F1D9C #9C7F1D #1D9C7F
tetradic
#7F1D9C #9C401D #3A9C1D #1D7A9C
square
#7F1D9C #9C401D #3A9C1D #1D7A9C
split-complementary
#7F1D9C #7A9C1D #1D9C40
monochromatic
#2B0A35 #551368 #7F1D9C #A927D0 #BF54DF

Accessibility & contrast

On white

8.21
#7F1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1D9C
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D9C#FFFFFF#000000##FFFFFF
##7F1D9C1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#7D3B5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1d9c;
/* rgb */ color: rgb(127, 29, 156);
/* oklch */ color: oklch(45.3% 0.197 316.8);
Tailwind
colors: {
  custom: {
    50: '#a866ba',
    500: '#7f1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d9c;
$custom-light: #a866ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d9c",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 286.299,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.19669,
    "h": 316.8
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#7F1D9C
secondary
#6CC252
accent
#EB3C64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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