#7E27AE#7E27AE

#7E27AE is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.203 H 310.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7E27AE
RGBrgb(126, 39, 174)
HSLhsl(279, 63%, 42%)
HSVhsv(279, 78%, 68%)
CMYKcmyk(27.6%, 77.6%, 0%, 31.8%)
CIE-LABlab(35.87, 57.94, -54.83)
CIE-LCHlch(35.87, 79.77, 316.58°)
OKLaboklab(47.33% 0.1303 -0.1555)
OKLCHoklch(47.33% 0.203 310)
XYZxyz(16.9682, 8.9430, 40.8685)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27AE #57AE27
analogous
#3B27AE #7E27AE #AE279B
triadic
#7E27AE #AE7E27 #27AE7E
tetradic
#7E27AE #AE3B27 #57AE27 #279BAE
square
#7E27AE #AE3B27 #57AE27 #279BAE
split-complementary
#7E27AE #9BAE27 #27AE3B
monochromatic
#36114A #5A1C7C #7E27AE #9F3ED4 #B870DF

Accessibility & contrast

On white

7.53
#7E27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27AE
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27AE#FFFFFF#000000##FFFFFF
##7E27AE1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#77486A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e27ae;
/* rgb */ color: rgb(126, 39, 174);
/* oklch */ color: oklch(47.3% 0.203 310.0);
Tailwind
colors: {
  custom: {
    50: '#a86bc7',
    500: '#7e27ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e27ae;
$custom-light: #a86bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27ae",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 278.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47331,
    "c": 0.20292,
    "h": 310
  },
  "luminance": 0.08943
}

Semantic roles & 50–950 ramp

primary
#7E27AE
secondary
#8BC66B
accent
#E6417C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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