#7C27AF#7C27AF

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

Color values

HEX#7C27AF
RGBrgb(124, 39, 175)
HSLhsl(278, 64%, 42%)
HSVhsv(278, 78%, 69%)
CMYKcmyk(29.1%, 77.7%, 0%, 31.4%)
CIE-LABlab(35.66, 57.80, -55.79)
CIE-LCHlch(35.66, 80.33, 316.01°)
OKLaboklab(47.14% 0.1274 -0.1584)
OKLCHoklch(47.14% 0.203 308.8)
XYZxyz(16.7740, 8.8316, 41.3701)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27AF #5AAF27
analogous
#3827AF #7C27AF #AF279E
triadic
#7C27AF #AF7C27 #27AF7C
tetradic
#7C27AF #AF3827 #5AAF27 #279EAF
square
#7C27AF #AF3827 #5AAF27 #279EAF
split-complementary
#7C27AF #9EAF27 #27AF38
monochromatic
#35114B #591C7D #7C27AF #9C3FD4 #B671DF

Accessibility & contrast

On white

7.59
#7C27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27AF
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27AF#FFFFFF#000000##FFFFFF
##7C27AF1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#74496A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c27af;
/* rgb */ color: rgb(124, 39, 175);
/* oklch */ color: oklch(47.1% 0.203 308.8);
Tailwind
colors: {
  custom: {
    50: '#a76bc8',
    500: '#7c27af',
    950: '#000000',
  },
}
SCSS
$custom: #7c27af;
$custom-light: #a76bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27af",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 277.5,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47142,
    "c": 0.2033,
    "h": 308.8
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#7C27AF
secondary
#8EC66B
accent
#E7417F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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