#7F1D97#7F1D97

#7F1D97 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.192 H 318.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7F1D97
RGBrgb(127, 29, 151)
HSLhsl(288, 68%, 35%)
HSVhsv(288, 81%, 59%)
CMYKcmyk(15.9%, 80.8%, 0%, 40.8%)
CIE-LABlab(33.19, 56.82, -45.28)
CIE-LCHlch(33.19, 72.66, 321.45°)
OKLaboklab(44.95% 0.1442 -0.1274)
OKLCHoklch(44.95% 0.192 318.5)
XYZxyz(14.7769, 7.6258, 29.9657)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D97 #35971D
analogous
#421D97 #7F1D97 #971D72
triadic
#7F1D97 #977F1D #1D977F
tetradic
#7F1D97 #97421D #35971D #1D7297
square
#7F1D97 #97421D #35971D #1D7297
split-complementary
#7F1D97 #72971D #1D9742
monochromatic
#290930 #541364 #7F1D97 #AA27CA #C251DE

Accessibility & contrast

On white

8.32
#7F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D97
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D97#FFFFFF#000000##FFFFFF
##7F1D971.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#245194
Tritanopia (blue-blind)
#7E395B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f1d97;
/* rgb */ color: rgb(127, 29, 151);
/* oklch */ color: oklch(44.9% 0.192 318.5);
Tailwind
colors: {
  custom: {
    50: '#a866b6',
    500: '#7f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d97;
$custom-light: #a866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d97",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 288.197,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44947,
    "c": 0.19242,
    "h": 318.5
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#7F1D97
secondary
#66C04F
accent
#EB3D5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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