#7F1FA1#7F1FA1

#7F1FA1 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.199 H 315.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7F1FA1
RGBrgb(127, 31, 161)
HSLhsl(284, 68%, 38%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(34.12, 58.16, -49.86)
CIE-LCHlch(34.12, 76.61, 319.39°)
OKLaboklab(45.83% 0.1409 -0.1408)
OKLCHoklch(45.83% 0.199 315)
XYZxyz(15.6743, 8.0658, 34.4425)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1FA1 #41A11F
analogous
#3E1FA1 #7F1FA1 #A11F82
triadic
#7F1FA1 #A17F1F #1FA17F
tetradic
#7F1FA1 #A13E1F #41A11F #1F82A1
square
#7F1FA1 #A13E1F #41A11F #1F82A1
split-complementary
#7F1FA1 #82A11F #1FA13E
monochromatic
#2E0B3A #57156E #7F1FA1 #A729D4 #BD5BDF

Accessibility & contrast

On white

8.04
#7F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1FA1
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1FA1#FFFFFF#000000##FFFFFF
##7F1FA11.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#17539E
Tritanopia (blue-blind)
#7C3E61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1fa1;
/* rgb */ color: rgb(127, 31, 161);
/* oklch */ color: oklch(45.8% 0.199 315.0);
Tailwind
colors: {
  custom: {
    50: '#a967be',
    500: '#7f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7f1fa1;
$custom-light: #a967be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1fa1",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 284.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45825,
    "c": 0.19921,
    "h": 315
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#7F1FA1
secondary
#74C458
accent
#EB3D6B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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