#7F2FA5#7F2FA5

#7F2FA5 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.186 H 312.5°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7F2FA5
RGBrgb(127, 47, 165)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(23%, 71.5%, 0%, 35.3%)
CIE-LABlab(36.48, 53.03, -48.45)
CIE-LCHlch(36.48, 71.83, 317.58°)
OKLaboklab(47.59% 0.1255 -0.1368)
OKLCHoklch(47.59% 0.186 312.5)
XYZxyz(16.5592, 9.2621, 36.5055)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FA5 #55A52F
analogous
#442FA5 #7F2FA5 #A52F90
triadic
#7F2FA5 #A57F2F #2FA57F
tetradic
#7F2FA5 #A5442F #55A52F #2F90A5
square
#7F2FA5 #A5442F #55A52F #2F90A5
split-complementary
#7F2FA5 #90A52F #2FA544
monochromatic
#361446 #5A2175 #7F2FA5 #A047CB #B976D8

Accessibility & contrast

On white

7.36
#7F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FA5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FA5#FFFFFF#000000##FFFFFF
##7F2FA51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2357A2
Tritanopia (blue-blind)
#7B4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2fa5;
/* rgb */ color: rgb(127, 47, 165);
/* oklch */ color: oklch(47.6% 0.186 312.5);
Tailwind
colors: {
  custom: {
    50: '#a86fc0',
    500: '#7f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fa5;
$custom-light: #a86fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fa5",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 280.678,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47588,
    "c": 0.18564,
    "h": 312.5
  },
  "luminance": 0.09262
}

Semantic roles & 50–950 ramp

primary
#7F2FA5
secondary
#8AC070
accent
#DF4979
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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