#7D27A4#7D27A4

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

Color values

HEX#7D27A4
RGBrgb(125, 39, 164)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(23.8%, 76.2%, 0%, 35.7%)
CIE-LABlab(34.99, 55.63, -50.28)
CIE-LCHlch(34.99, 74.99, 317.89°)
OKLaboklab(46.44% 0.1309 -0.1422)
OKLCHoklch(46.44% 0.193 312.6)
XYZxyz(15.8826, 8.4918, 35.9172)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27A4 #4EA427
analogous
#3F27A4 #7D27A4 #A4278D
triadic
#7D27A4 #A47D27 #27A47D
tetradic
#7D27A4 #A43F27 #4EA427 #278DA4
square
#7D27A4 #A43F27 #4EA427 #278DA4
split-complementary
#7D27A4 #8DA427 #27A43F
monochromatic
#320F41 #571B73 #7D27A4 #A138D0 #B86ADC

Accessibility & contrast

On white

7.78
#7D27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27A4
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27A4#FFFFFF#000000##FFFFFF
##7D27A41.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1654A1
Tritanopia (blue-blind)
#794464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d27a4;
/* rgb */ color: rgb(125, 39, 164);
/* oklch */ color: oklch(46.4% 0.193 312.6);
Tailwind
colors: {
  custom: {
    50: '#a76bc0',
    500: '#7d27a4',
    950: '#000000',
  },
}
SCSS
$custom: #7d27a4;
$custom-light: #a76bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27a4",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 281.28,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46442,
    "c": 0.19327,
    "h": 312.6
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#7D27A4
secondary
#82C265
accent
#E54376
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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