#7F1794#7F1794

#7F1794 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.195 H 319.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7F1794
RGBrgb(127, 23, 148)
HSLhsl(290, 73%, 34%)
HSVhsv(290, 84%, 58%)
CMYKcmyk(14.2%, 84.5%, 0%, 42%)
CIE-LABlab(32.40, 57.95, -44.72)
CIE-LCHlch(32.40, 73.20, 322.34°)
OKLaboklab(44.32% 0.1491 -0.1257)
OKLCHoklch(44.32% 0.195 319.9)
XYZxyz(14.4034, 7.2637, 28.6546)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1794 #2C9417
analogous
#401794 #7F1794 #94176A
triadic
#7F1794 #947F17 #17947F
tetradic
#7F1794 #944017 #2C9417 #176A94
square
#7F1794 #944017 #2C9417 #176A94
split-complementary
#7F1794 #6A9417 #179440
monochromatic
#24072A #520F5F #7F1794 #AC1FC9 #C744E2

Accessibility & contrast

On white

8.56
#7F1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1794
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1794#FFFFFF#000000##FFFFFF
##7F17941.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#245091
Tritanopia (blue-blind)
#7F3558
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1794;
/* rgb */ color: rgb(127, 23, 148);
/* oklch */ color: oklch(44.3% 0.195 319.9);
Tailwind
colors: {
  custom: {
    50: '#a864b4',
    500: '#7f1794',
    950: '#000000',
  },
}
SCSS
$custom: #7f1794;
$custom-light: #a864b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1794",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 289.92,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44324,
    "c": 0.19503,
    "h": 319.9
  },
  "luminance": 0.07263
}

Semantic roles & 50–950 ramp

primary
#7F1794
secondary
#59C344
accent
#F03857
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1794

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

Preview Lab → · Contrast checker → · Palette generator →

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