#7E27AD#7E27AD

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

Color values

HEX#7E27AD
RGBrgb(126, 39, 173)
HSLhsl(279, 63%, 42%)
HSVhsv(279, 77%, 68%)
CMYKcmyk(27.2%, 77.5%, 0%, 32.2%)
CIE-LABlab(35.80, 57.73, -54.36)
CIE-LCHlch(35.80, 79.29, 316.72°)
OKLaboklab(47.25% 0.1305 -0.1541)
OKLCHoklch(47.25% 0.202 310.3)
XYZxyz(16.8710, 8.9042, 40.3570)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27AD #56AD27
analogous
#3B27AD #7E27AD #AD2799
triadic
#7E27AD #AD7E27 #27AD7E
tetradic
#7E27AD #AD3B27 #56AD27 #2799AD
square
#7E27AD #AD3B27 #56AD27 #2799AD
split-complementary
#7E27AD #99AD27 #27AD3B
monochromatic
#351049 #5A1C7B #7E27AD #9F3ED3 #B870DF

Accessibility & contrast

On white

7.55
#7E27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E27AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27AD
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27AD#FFFFFF#000000##FFFFFF
##7E27AD1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#774869
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e27ad;
/* rgb */ color: rgb(126, 39, 173);
/* oklch */ color: oklch(47.3% 0.202 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86bc6',
    500: '#7e27ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e27ad;
$custom-light: #a86bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27ad",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 278.955,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47254,
    "c": 0.20199,
    "h": 310.3
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

primary
#7E27AD
secondary
#8AC66A
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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