#7F1AA1#7F1AA1

#7F1AA1 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.203 H 315.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7F1AA1
RGBrgb(127, 26, 161)
HSLhsl(285, 72%, 37%)
HSVhsv(285, 84%, 63%)
CMYKcmyk(21.1%, 83.9%, 0%, 36.9%)
CIE-LABlab(33.61, 59.63, -50.68)
CIE-LCHlch(33.61, 78.25, 319.64°)
OKLaboklab(45.47% 0.1446 -0.1432)
OKLCHoklch(45.47% 0.203 315.3)
XYZxyz(15.5538, 7.8246, 34.4023)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1AA1 #3CA11A
analogous
#3C1AA1 #7F1AA1 #A11A80
triadic
#7F1AA1 #A17F1A #1AA17F
tetradic
#7F1AA1 #A13C1A #3CA11A #1A80A1
square
#7F1AA1 #A13C1A #3CA11A #1A80A1
split-complementary
#7F1AA1 #80A11A #1AA13C
monochromatic
#2C0938 #55116C #7F1AA1 #A923D6 #BF52E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1AA1#FFFFFF#000000##FFFFFF
##7F1AA11.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#11519E
Tritanopia (blue-blind)
#7C3C60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1aa1;
/* rgb */ color: rgb(127, 26, 161);
/* oklch */ color: oklch(45.5% 0.203 315.3);
Tailwind
colors: {
  custom: {
    50: '#a966be',
    500: '#7f1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #7f1aa1;
$custom-light: #a966be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1aa1",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 284.889,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45472,
    "c": 0.20348,
    "h": 315.3
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#7F1AA1
secondary
#6EC651
accent
#EF3967
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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