#7F1A9E#7F1A9E

#7F1A9E is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.201 H 316.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7F1A9E
RGBrgb(127, 26, 158)
HSLhsl(286, 72%, 36%)
HSVhsv(286, 84%, 62%)
CMYKcmyk(19.6%, 83.5%, 0%, 38%)
CIE-LABlab(33.39, 59.04, -49.22)
CIE-LCHlch(33.39, 76.87, 320.19°)
OKLaboklab(45.25% 0.1452 -0.1389)
OKLCHoklch(45.25% 0.201 316.3)
XYZxyz(15.2924, 7.7201, 33.0257)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A9E #399E1A
analogous
#3D1A9E #7F1A9E #9E1A7B
triadic
#7F1A9E #9E7F1A #1A9E7F
tetradic
#7F1A9E #9E3D1A #399E1A #1A7B9E
square
#7F1A9E #9E3D1A #399E1A #1A7B9E
split-complementary
#7F1A9E #7B9E1A #1A9E3D
monochromatic
#2B0935 #551169 #7F1A9E #A923D3 #C050E2

Accessibility & contrast

On white

8.26
#7F1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A9E
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A9E#FFFFFF#000000##FFFFFF
##7F1A9E1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#18519B
Tritanopia (blue-blind)
#7D3B5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1a9e;
/* rgb */ color: rgb(127, 26, 158);
/* oklch */ color: oklch(45.2% 0.201 316.3);
Tailwind
colors: {
  custom: {
    50: '#a965bb',
    500: '#7f1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a9e;
$custom-light: #a965bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a9e",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 285.909,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45247,
    "c": 0.20095,
    "h": 316.3
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#7F1A9E
secondary
#6BC54F
accent
#EE3964
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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