#7C27A4#7C27A4

#7C27A4 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.193 H 312.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7C27A4
RGBrgb(124, 39, 164)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(24.4%, 76.2%, 0%, 35.7%)
CIE-LABlab(34.84, 55.44, -50.53)
CIE-LCHlch(34.84, 75.01, 317.65°)
OKLaboklab(46.31% 0.1296 -0.143)
OKLCHoklch(46.31% 0.193 312.2)
XYZxyz(15.7373, 8.4169, 35.9104)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27A4 #4FA427
analogous
#3E27A4 #7C27A4 #A4278E
triadic
#7C27A4 #A47C27 #27A47C
tetradic
#7C27A4 #A43E27 #4FA427 #278EA4
square
#7C27A4 #A43E27 #4FA427 #278EA4
split-complementary
#7C27A4 #8EA427 #27A43E
monochromatic
#310F41 #571B73 #7C27A4 #9F38D0 #B76ADC

Accessibility & contrast

On white

7.83
#7C27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27A4
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27A4#FFFFFF#000000##FFFFFF
##7C27A41.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c27a4;
/* rgb */ color: rgb(124, 39, 164);
/* oklch */ color: oklch(46.3% 0.193 312.2);
Tailwind
colors: {
  custom: {
    50: '#a66ac0',
    500: '#7c27a4',
    950: '#000000',
  },
}
SCSS
$custom: #7c27a4;
$custom-light: #a66ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27a4",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 280.8,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46305,
    "c": 0.19295,
    "h": 312.2
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#7C27A4
secondary
#83C265
accent
#E54377
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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