#7C27AA#7C27AA

#7C27AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.8% C 0.199 H 310.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7C27AA
RGBrgb(124, 39, 170)
HSLhsl(279, 63%, 41%)
HSVhsv(279, 77%, 67%)
CMYKcmyk(27.1%, 77.1%, 0%, 33.3%)
CIE-LABlab(35.28, 56.71, -53.42)
CIE-LCHlch(35.28, 77.91, 316.71°)
OKLaboklab(46.76% 0.1285 -0.1514)
OKLCHoklch(46.76% 0.199 310.3)
XYZxyz(16.2920, 8.6388, 38.8316)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27AA #55AA27
analogous
#3A27AA #7C27AA #AA2796
triadic
#7C27AA #AA7C27 #27AA7C
tetradic
#7C27AA #AA3A27 #55AA27 #2796AA
square
#7C27AA #AA3A27 #55AA27 #2796AA
split-complementary
#7C27AA #96AA27 #27AA3A
monochromatic
#331046 #581C78 #7C27AA #9D3CD2 #B66EDE

Accessibility & contrast

On white

7.70
#7C27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27AA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27AA#FFFFFF#000000##FFFFFF
##7C27AA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#764768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c27aa;
/* rgb */ color: rgb(124, 39, 170);
/* oklch */ color: oklch(46.8% 0.199 310.3);
Tailwind
colors: {
  custom: {
    50: '#a76bc4',
    500: '#7c27aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c27aa;
$custom-light: #a76bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27aa",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 278.931,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46757,
    "c": 0.19859,
    "h": 310.3
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#7C27AA
secondary
#89C469
accent
#E6427C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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