#7E27B1#7E27B1

#7E27B1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.206 H 309.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7E27B1
RGBrgb(126, 39, 177)
HSLhsl(278, 64%, 42%)
HSVhsv(278, 78%, 69%)
CMYKcmyk(28.8%, 78%, 0%, 30.6%)
CIE-LABlab(36.10, 58.59, -56.25)
CIE-LCHlch(36.10, 81.22, 316.17°)
OKLaboklab(47.56% 0.1297 -0.1597)
OKLCHoklch(47.56% 0.206 309.1)
XYZxyz(17.2639, 9.0613, 42.4260)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27B1 #5AB127
analogous
#3927B1 #7E27B1 #B1279F
triadic
#7E27B1 #B17E27 #27B17E
tetradic
#7E27B1 #B13927 #5AB127 #279FB1
square
#7E27B1 #B13927 #5AB127 #279FB1
split-complementary
#7E27B1 #9FB127 #27B139
monochromatic
#37114D #5A1C7F #7E27B1 #9E40D5 #B772E0

Accessibility & contrast

On white

7.47
#7E27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27B1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27B1#FFFFFF#000000##FFFFFF
##7E27B11.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#76496C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e27b1;
/* rgb */ color: rgb(126, 39, 177);
/* oklch */ color: oklch(47.6% 0.206 309.1);
Tailwind
colors: {
  custom: {
    50: '#a86bc9',
    500: '#7e27b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e27b1;
$custom-light: #a86bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27b1",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 277.826,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47562,
    "c": 0.20573,
    "h": 309.1
  },
  "luminance": 0.09061
}

Semantic roles & 50–950 ramp

primary
#7E27B1
secondary
#8EC76D
accent
#E7417E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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