#7E27AC#7E27AC

#7E27AC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.201 H 310.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7E27AC
RGBrgb(126, 39, 172)
HSLhsl(279, 63%, 41%)
HSVhsv(279, 77%, 67%)
CMYKcmyk(26.7%, 77.3%, 0%, 32.5%)
CIE-LABlab(35.72, 57.51, -53.88)
CIE-LCHlch(35.72, 78.81, 316.87°)
OKLaboklab(47.18% 0.1308 -0.1527)
OKLCHoklch(47.18% 0.201 310.6)
XYZxyz(16.7746, 8.8656, 39.8493)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27AC #55AC27
analogous
#3C27AC #7E27AC #AC2798
triadic
#7E27AC #AC7E27 #27AC7E
tetradic
#7E27AC #AC3C27 #55AC27 #2798AC
square
#7E27AC #AC3C27 #55AC27 #2798AC
split-complementary
#7E27AC #98AC27 #27AC3C
monochromatic
#351048 #591C7A #7E27AC #9F3DD3 #B86FDE

Accessibility & contrast

On white

7.57
#7E27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27AC
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27AC#FFFFFF#000000##FFFFFF
##7E27AC1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#784769
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e27ac;
/* rgb */ color: rgb(126, 39, 172);
/* oklch */ color: oklch(47.2% 0.201 310.6);
Tailwind
colors: {
  custom: {
    50: '#a86bc6',
    500: '#7e27ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e27ac;
$custom-light: #a86bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27ac",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 279.248,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47178,
    "c": 0.20106,
    "h": 310.6
  },
  "luminance": 0.08865
}

Semantic roles & 50–950 ramp

primary
#7E27AC
secondary
#89C56A
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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