#7E27A5#7E27A5

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

Color values

HEX#7E27A5
RGBrgb(126, 39, 165)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 76%, 65%)
CMYKcmyk(23.6%, 76.4%, 0%, 35.3%)
CIE-LABlab(35.21, 56.03, -50.52)
CIE-LCHlch(35.21, 75.44, 317.96°)
OKLaboklab(46.65% 0.132 -0.1428)
OKLCHoklch(46.65% 0.195 312.7)
XYZxyz(16.1200, 8.6038, 36.4015)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A5 #4EA527
analogous
#3F27A5 #7E27A5 #A5278D
triadic
#7E27A5 #A57E27 #27A57E
tetradic
#7E27A5 #A53F27 #4EA527 #278DA5
square
#7E27A5 #A53F27 #4EA527 #278DA5
split-complementary
#7E27A5 #8DA527 #27A53F
monochromatic
#321042 #581B74 #7E27A5 #A139D0 #B96ADC

Accessibility & contrast

On white

7.72
#7E27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27A5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A5#FFFFFF#000000##FFFFFF
##7E27A51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#1755A2
Tritanopia (blue-blind)
#7A4465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e27a5;
/* rgb */ color: rgb(126, 39, 165);
/* oklch */ color: oklch(46.7% 0.195 312.7);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7e27a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a5;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a5",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 281.429,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.46653,
    "c": 0.19453,
    "h": 312.7
  },
  "luminance": 0.08603
}

Semantic roles & 50–950 ramp

primary
#7E27A5
secondary
#82C266
accent
#E54375
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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