#7C27AE#7C27AE

#7C27AE is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.202 H 309.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7C27AE
RGBrgb(124, 39, 174)
HSLhsl(278, 63%, 42%)
HSVhsv(278, 78%, 68%)
CMYKcmyk(28.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(35.58, 57.58, -55.32)
CIE-LCHlch(35.58, 79.85, 316.15°)
OKLaboklab(47.07% 0.1276 -0.157)
OKLCHoklch(47.07% 0.202 309.1)
XYZxyz(16.6761, 8.7924, 40.8548)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27AE #59AE27
analogous
#3927AE #7C27AE #AE279D
triadic
#7C27AE #AE7C27 #27AE7C
tetradic
#7C27AE #AE3927 #59AE27 #279DAE
square
#7C27AE #AE3927 #59AE27 #279DAE
split-complementary
#7C27AE #9DAE27 #27AE39
monochromatic
#35114A #581C7C #7C27AE #9C3ED4 #B670DF

Accessibility & contrast

On white

7.61
#7C27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7C27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27AE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27AE#FFFFFF#000000##FFFFFF
##7C27AE1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#74486A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c27ae;
/* rgb */ color: rgb(124, 39, 174);
/* oklch */ color: oklch(47.1% 0.202 309.1);
Tailwind
colors: {
  custom: {
    50: '#a76bc7',
    500: '#7c27ae',
    950: '#000000',
  },
}
SCSS
$custom: #7c27ae;
$custom-light: #a76bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27ae",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 277.778,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47065,
    "c": 0.20236,
    "h": 309.1
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#7C27AE
secondary
#8DC66B
accent
#E6417F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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