#7E27A6#7E27A6

#7E27A6 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.195 H 312.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7E27A6
RGBrgb(126, 39, 166)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 77%, 65%)
CMYKcmyk(24.1%, 76.5%, 0%, 34.9%)
CIE-LABlab(35.28, 56.24, -51.00)
CIE-LCHlch(35.28, 75.92, 317.80°)
OKLaboklab(46.73% 0.1319 -0.1443)
OKLCHoklch(46.73% 0.195 312.4)
XYZxyz(16.2114, 8.6403, 36.8828)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A6 #4FA627
analogous
#3E27A6 #7E27A6 #A6278F
triadic
#7E27A6 #A67E27 #27A67E
tetradic
#7E27A6 #A63E27 #4FA627 #278FA6
square
#7E27A6 #A63E27 #4FA627 #278FA6
split-complementary
#7E27A6 #8FA627 #27A63E
monochromatic
#331043 #581B74 #7E27A6 #A13AD1 #B96BDC

Accessibility & contrast

On white

7.70
#7E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27A6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A6#FFFFFF#000000##FFFFFF
##7E27A61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#1455A3
Tritanopia (blue-blind)
#794565
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e27a6;
/* rgb */ color: rgb(126, 39, 166);
/* oklch */ color: oklch(46.7% 0.195 312.4);
Tailwind
colors: {
  custom: {
    50: '#a86bc1',
    500: '#7e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a6;
$custom-light: #a86bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a6",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 281.102,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46727,
    "c": 0.19546,
    "h": 312.4
  },
  "luminance": 0.0864
}

Semantic roles & 50–950 ramp

primary
#7E27A6
secondary
#83C366
accent
#E54376
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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