#7F1FA7#7F1FA7

#7F1FA7 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.204 H 313.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7F1FA7
RGBrgb(127, 31, 167)
HSLhsl(282, 69%, 39%)
HSVhsv(282, 81%, 65%)
CMYKcmyk(24%, 81.4%, 0%, 34.5%)
CIE-LABlab(34.56, 59.37, -52.76)
CIE-LCHlch(34.56, 79.42, 318.37°)
OKLaboklab(46.28% 0.1397 -0.1493)
OKLCHoklch(46.28% 0.204 313.1)
XYZxyz(16.2162, 8.2825, 37.2962)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1FA7 #47A71F
analogous
#3B1FA7 #7F1FA7 #A71F8B
triadic
#7F1FA7 #A77F1F #1FA77F
tetradic
#7F1FA7 #A73B1F #47A71F #1F8BA7
square
#7F1FA7 #A73B1F #47A71F #1F8BA7
split-complementary
#7F1FA7 #8BA71F #1FA73B
monochromatic
#300C40 #581573 #7F1FA7 #A52BD8 #BB5FE1

Accessibility & contrast

On white

7.91
#7F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1FA7
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1FA7#FFFFFF#000000##FFFFFF
##7F1FA71.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0553A4
Tritanopia (blue-blind)
#7A4164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1fa7;
/* rgb */ color: rgb(127, 31, 167);
/* oklch */ color: oklch(46.3% 0.204 313.1);
Tailwind
colors: {
  custom: {
    50: '#a968c2',
    500: '#7f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7f1fa7;
$custom-light: #a968c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1fa7",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 282.353,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46277,
    "c": 0.20447,
    "h": 313.1
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#7F1FA7
secondary
#7BC65C
accent
#EC3C70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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