#7E27A4#7E27A4

#7E27A4 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.194 H 313.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E27A4
RGBrgb(126, 39, 164)
HSLhsl(282, 62%, 40%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(23.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(35.14, 55.82, -50.03)
CIE-LCHlch(35.14, 74.96, 318.13°)
OKLaboklab(46.58% 0.1322 -0.1414)
OKLCHoklch(46.58% 0.194 313.1)
XYZxyz(16.0294, 8.5675, 35.9241)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A4 #4DA427
analogous
#4027A4 #7E27A4 #A4278C
triadic
#7E27A4 #A47E27 #27A47E
tetradic
#7E27A4 #A44027 #4DA427 #278CA4
square
#7E27A4 #A44027 #4DA427 #278CA4
split-complementary
#7E27A4 #8CA427 #27A440
monochromatic
#320F41 #581B73 #7E27A4 #A238D0 #B96ADC

Accessibility & contrast

On white

7.74
#7E27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27A4
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A4#FFFFFF#000000##FFFFFF
##7E27A41.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1954A1
Tritanopia (blue-blind)
#7A4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e27a4;
/* rgb */ color: rgb(126, 39, 164);
/* oklch */ color: oklch(46.6% 0.194 313.1);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7e27a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a4;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a4",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 281.76,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.1936,
    "h": 313.1
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#7E27A4
secondary
#81C265
accent
#E54374
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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