#7E27A3#7E27A3

#7E27A3 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.193 H 313.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7E27A3
RGBrgb(126, 39, 163)
HSLhsl(282, 61%, 40%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(22.7%, 76.1%, 0%, 36.1%)
CIE-LABlab(35.07, 55.62, -49.54)
CIE-LCHlch(35.07, 74.48, 318.30°)
OKLaboklab(46.51% 0.1324 -0.14)
OKLCHoklch(46.51% 0.193 313.4)
XYZxyz(15.9394, 8.5315, 35.4503)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A3 #4CA327
analogous
#4027A3 #7E27A3 #A3278A
triadic
#7E27A3 #A37E27 #27A37E
tetradic
#7E27A3 #A34027 #4CA327 #278AA3
square
#7E27A3 #A34027 #4CA327 #278AA3
split-complementary
#7E27A3 #8AA327 #27A340
monochromatic
#320F40 #581B72 #7E27A3 #A238CF #B969DB

Accessibility & contrast

On white

7.76
#7E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E27A3
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A3#FFFFFF#000000##FFFFFF
##7E27A31.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1A54A0
Tritanopia (blue-blind)
#7A4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e27a3;
/* rgb */ color: rgb(126, 39, 163);
/* oklch */ color: oklch(46.5% 0.193 313.4);
Tailwind
colors: {
  custom: {
    50: '#a86bbf',
    500: '#7e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a3;
$custom-light: #a86bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a3",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 282.097,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.19268,
    "h": 313.4
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#7E27A3
secondary
#80C164
accent
#E44373
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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