#7F1D9D#7F1D9D

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

Color values

HEX#7F1D9D
RGBrgb(127, 29, 157)
HSLhsl(286, 69%, 36%)
HSVhsv(286, 82%, 62%)
CMYKcmyk(19.1%, 81.5%, 0%, 38.4%)
CIE-LABlab(33.62, 57.98, -48.25)
CIE-LCHlch(33.62, 75.43, 320.24°)
OKLaboklab(45.38% 0.1432 -0.1361)
OKLCHoklch(45.38% 0.198 316.5)
XYZxyz(15.2766, 7.8257, 32.5976)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D9D #3B9D1D
analogous
#3F1D9D #7F1D9D #9D1D7B
triadic
#7F1D9D #9D7F1D #1D9D7F
tetradic
#7F1D9D #9D3F1D #3B9D1D #1D7B9D
square
#7F1D9D #9D3F1D #3B9D1D #1D7B9D
split-complementary
#7F1D9D #7B9D1D #1D9D3F
monochromatic
#2B0A36 #551369 #7F1D9D #A927D1 #BF55E0

Accessibility & contrast

On white

8.19
#7F1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1D9D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D9D#FFFFFF#000000##FFFFFF
##7F1D9D1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1d9d;
/* rgb */ color: rgb(127, 29, 157);
/* oklch */ color: oklch(45.4% 0.198 316.5);
Tailwind
colors: {
  custom: {
    50: '#a866bb',
    500: '#7f1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d9d;
$custom-light: #a866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d9d",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 285.938,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45381,
    "c": 0.19755,
    "h": 316.5
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#7F1D9D
secondary
#6DC353
accent
#EC3C65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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