#7F1C97#7F1C97

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

Color values

HEX#7F1C97
RGBrgb(127, 28, 151)
HSLhsl(288, 69%, 35%)
HSVhsv(288, 81%, 59%)
CMYKcmyk(15.9%, 81.5%, 0%, 40.8%)
CIE-LABlab(33.09, 57.13, -45.45)
CIE-LCHlch(33.09, 73.00, 321.50°)
OKLaboklab(44.87% 0.145 -0.1279)
OKLCHoklch(44.87% 0.193 318.6)
XYZxyz(14.7528, 7.5776, 29.9577)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C97 #34971C
analogous
#421C97 #7F1C97 #971C71
triadic
#7F1C97 #977F1C #1C977F
tetradic
#7F1C97 #97421C #34971C #1C7197
square
#7F1C97 #97421C #34971C #1C7197
split-complementary
#7F1C97 #71971C #1C9742
monochromatic
#280930 #541263 #7F1C97 #AA26CB #C24FDE

Accessibility & contrast

On white

8.35
#7F1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7F1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C97
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C97#FFFFFF#000000##FFFFFF
##7F1C971.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1c97;
/* rgb */ color: rgb(127, 28, 151);
/* oklch */ color: oklch(44.9% 0.193 318.6);
Tailwind
colors: {
  custom: {
    50: '#a866b6',
    500: '#7f1c97',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c97;
$custom-light: #a866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c97",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 288.293,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44874,
    "c": 0.19333,
    "h": 318.6
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#7F1C97
secondary
#64C14E
accent
#EC3C5E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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