#7E27A9#7E27A9

#7E27A9 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.198 H 311.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7E27A9
RGBrgb(126, 39, 169)
HSLhsl(280, 63%, 41%)
HSVhsv(280, 77%, 66%)
CMYKcmyk(25.4%, 76.9%, 0%, 33.7%)
CIE-LABlab(35.50, 56.88, -52.45)
CIE-LCHlch(35.50, 77.36, 317.32°)
OKLaboklab(46.95% 0.1313 -0.1485)
OKLCHoklch(46.95% 0.198 311.5)
XYZxyz(16.4898, 8.7517, 38.3490)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A9 #52A927
analogous
#3D27A9 #7E27A9 #A92793
triadic
#7E27A9 #A97E27 #27A97E
tetradic
#7E27A9 #A93D27 #52A927 #2793A9
square
#7E27A9 #A93D27 #52A927 #2793A9
split-complementary
#7E27A9 #93A927 #27A93D
monochromatic
#341046 #591C77 #7E27A9 #A03BD2 #B86DDD

Accessibility & contrast

On white

7.64
#7E27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E27A9
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A9#FFFFFF#000000##FFFFFF
##7E27A91.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0C55A6
Tritanopia (blue-blind)
#784667
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e27a9;
/* rgb */ color: rgb(126, 39, 169);
/* oklch */ color: oklch(47.0% 0.198 311.5);
Tailwind
colors: {
  custom: {
    50: '#a86bc3',
    500: '#7e27a9',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a9;
$custom-light: #a86bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a9",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 280.154,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46951,
    "c": 0.19826,
    "h": 311.5
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#7E27A9
secondary
#86C468
accent
#E64278
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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