#7F2FA7#7F2FA7

#7F2FA7 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.188 H 311.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA7
RGBrgb(127, 47, 167)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24%, 71.9%, 0%, 34.5%)
CIE-LABlab(36.62, 53.46, -49.43)
CIE-LCHlch(36.62, 72.81, 317.25°)
OKLaboklab(47.73% 0.1252 -0.1397)
OKLCHoklch(47.73% 0.188 311.9)
XYZxyz(16.7427, 9.3355, 37.4717)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA7 #57A72F
analogous
#432FA7 #7F2FA7 #A72F93
triadic
#7F2FA7 #A77F2F #2FA77F
tetradic
#7F2FA7 #A7432F #57A72F #2F93A7
square
#7F2FA7 #A7432F #57A72F #2F93A7
split-complementary
#7F2FA7 #93A72F #2FA743
monochromatic
#361447 #5B2277 #7F2FA7 #A048CB #B878D9

Accessibility & contrast

On white

7.32
#7F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA7
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA7#FFFFFF#000000##FFFFFF
##7F2FA71.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2058A4
Tritanopia (blue-blind)
#7A4968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa7;
/* rgb */ color: rgb(127, 47, 167);
/* oklch */ color: oklch(47.7% 0.188 311.9);
Tailwind
colors: {
  custom: {
    50: '#a86fc2',
    500: '#7f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa7;
$custom-light: #a86fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa7",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 280,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4773,
    "c": 0.1876,
    "h": 311.9
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#7F2FA7
secondary
#8CC171
accent
#DF487B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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