#7F27A7#7F27A7

#7F27A7 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.197 H 312.5°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7F27A7
RGBrgb(127, 39, 167)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 77%, 65%)
CMYKcmyk(24%, 76.6%, 0%, 34.5%)
CIE-LABlab(35.51, 56.64, -51.23)
CIE-LCHlch(35.51, 76.38, 317.87°)
OKLaboklab(46.94% 0.133 -0.1449)
OKLCHoklch(46.94% 0.197 312.5)
XYZxyz(16.4517, 8.7536, 37.3747)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27A7 #4FA727
analogous
#3F27A7 #7F27A7 #A7278F
triadic
#7F27A7 #A77F27 #27A77F
tetradic
#7F27A7 #A73F27 #4FA727 #278FA7
square
#7F27A7 #A73F27 #4FA727 #278FA7
split-complementary
#7F27A7 #8FA727 #27A73F
monochromatic
#341044 #591B75 #7F27A7 #A23AD1 #B96CDD

Accessibility & contrast

On white

7.63
#7F27A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F27A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27A7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27A7#FFFFFF#000000##FFFFFF
##7F27A71.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#1555A4
Tritanopia (blue-blind)
#7A4566
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f27a7;
/* rgb */ color: rgb(127, 39, 167);
/* oklch */ color: oklch(46.9% 0.197 312.5);
Tailwind
colors: {
  custom: {
    50: '#a96bc2',
    500: '#7f27a7',
    950: '#000000',
  },
}
SCSS
$custom: #7f27a7;
$custom-light: #a96bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27a7",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 281.25,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46939,
    "c": 0.19671,
    "h": 312.5
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#7F27A7
secondary
#84C367
accent
#E54375
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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