#7C27A3#7C27A3

#7C27A3 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.192 H 312.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7C27A3
RGBrgb(124, 39, 163)
HSLhsl(281, 61%, 40%)
HSVhsv(281, 76%, 64%)
CMYKcmyk(23.9%, 76.1%, 0%, 36.1%)
CIE-LABlab(34.76, 55.22, -50.05)
CIE-LCHlch(34.76, 74.53, 317.82°)
OKLaboklab(46.23% 0.1297 -0.1415)
OKLCHoklch(46.23% 0.192 312.5)
XYZxyz(15.6474, 8.3809, 35.4366)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27A3 #4EA327
analogous
#3E27A3 #7C27A3 #A3278C
triadic
#7C27A3 #A37C27 #27A37C
tetradic
#7C27A3 #A33E27 #4EA327 #278CA3
square
#7C27A3 #A33E27 #4EA327 #278CA3
split-complementary
#7C27A3 #8CA327 #27A33E
monochromatic
#310F40 #561B72 #7C27A3 #A038CF #B769DB

Accessibility & contrast

On white

7.85
#7C27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C27A3
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27A3#FFFFFF#000000##FFFFFF
##7C27A31.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#774464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c27a3;
/* rgb */ color: rgb(124, 39, 163);
/* oklch */ color: oklch(46.2% 0.192 312.5);
Tailwind
colors: {
  custom: {
    50: '#a66abf',
    500: '#7c27a3',
    950: '#000000',
  },
}
SCSS
$custom: #7c27a3;
$custom-light: #a66abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27a3",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 281.129,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46231,
    "c": 0.19201,
    "h": 312.5
  },
  "luminance": 0.0838
}

Semantic roles & 50–950 ramp

primary
#7C27A3
secondary
#82C164
accent
#E44376
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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