#7F1FA0#7F1FA0

#7F1FA0 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.198 H 315.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7F1FA0
RGBrgb(127, 31, 160)
HSLhsl(285, 68%, 37%)
HSVhsv(285, 81%, 63%)
CMYKcmyk(20.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(34.05, 57.96, -49.37)
CIE-LCHlch(34.05, 76.14, 319.57°)
OKLaboklab(45.75% 0.1411 -0.1394)
OKLCHoklch(45.75% 0.198 315.3)
XYZxyz(15.5865, 8.0307, 33.9799)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1FA0 #40A01F
analogous
#3E1FA0 #7F1FA0 #A01F81
triadic
#7F1FA0 #A07F1F #1FA07F
tetradic
#7F1FA0 #A03E1F #40A01F #1F81A0
square
#7F1FA0 #A03E1F #40A01F #1F81A0
split-complementary
#7F1FA0 #81A01F #1FA03E
monochromatic
#2E0B39 #56156D #7F1FA0 #A829D3 #BD5ADF

Accessibility & contrast

On white

8.06
#7F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1FA0
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1FA0#FFFFFF#000000##FFFFFF
##7F1FA01.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#19529D
Tritanopia (blue-blind)
#7C3E60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1fa0;
/* rgb */ color: rgb(127, 31, 160);
/* oklch */ color: oklch(45.8% 0.198 315.3);
Tailwind
colors: {
  custom: {
    50: '#a867bd',
    500: '#7f1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7f1fa0;
$custom-light: #a867bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1fa0",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 284.651,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.19834,
    "h": 315.3
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#7F1FA0
secondary
#73C358
accent
#EA3D6A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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