#7F2AA6#7F2AA6

#7F2AA6 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.193 H 312.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA6
RGBrgb(127, 42, 166)
HSLhsl(281, 60%, 41%)
HSVhsv(281, 75%, 65%)
CMYKcmyk(23.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.83, 55.29, -50.10)
CIE-LCHlch(35.83, 74.62, 317.82°)
OKLaboklab(47.15% 0.1304 -0.1416)
OKLCHoklch(47.15% 0.193 312.6)
XYZxyz(16.4621, 8.9216, 36.9239)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA6 #51A62A
analogous
#412AA6 #7F2AA6 #A62A8F
triadic
#7F2AA6 #A67F2A #2AA67F
tetradic
#7F2AA6 #A6412A #51A62A #2A8FA6
square
#7F2AA6 #A6412A #51A62A #2A8FA6
split-complementary
#7F2AA6 #8FA62A #2AA641
monochromatic
#341144 #5A1E75 #7F2AA6 #A13FCE #B970DB

Accessibility & contrast

On white

7.54
#7F2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA6#FFFFFF#000000##FFFFFF
##7F2AA61.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1B56A3
Tritanopia (blue-blind)
#7B4666
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2aa6;
/* rgb */ color: rgb(127, 42, 166);
/* oklch */ color: oklch(47.1% 0.193 312.6);
Tailwind
colors: {
  custom: {
    50: '#a86cc1',
    500: '#7f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa6;
$custom-light: #a86cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa6",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 281.129,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.1925,
    "h": 312.6
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#7F2AA6
secondary
#86C26A
accent
#E34577
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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