#7C27AB#7C27AB

#7C27AB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.200 H 310.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7C27AB
RGBrgb(124, 39, 171)
HSLhsl(279, 63%, 41%)
HSVhsv(279, 77%, 67%)
CMYKcmyk(27.5%, 77.2%, 0%, 32.9%)
CIE-LABlab(35.35, 56.93, -53.90)
CIE-LCHlch(35.35, 78.39, 316.57°)
OKLaboklab(46.83% 0.1283 -0.1529)
OKLCHoklch(46.83% 0.2 310)
XYZxyz(16.3869, 8.6768, 39.3317)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27AB #56AB27
analogous
#3A27AB #7C27AB #AB2798
triadic
#7C27AB #AB7C27 #27AB7C
tetradic
#7C27AB #AB3A27 #56AB27 #2798AB
square
#7C27AB #AB3A27 #56AB27 #2798AB
split-complementary
#7C27AB #98AB27 #27AB3A
monochromatic
#341047 #581C79 #7C27AB #9D3DD3 #B66EDE

Accessibility & contrast

On white

7.68
#7C27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7C27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27AB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27AB#FFFFFF#000000##FFFFFF
##7C27AB1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#754768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c27ab;
/* rgb */ color: rgb(124, 39, 171);
/* oklch */ color: oklch(46.8% 0.200 310.0);
Tailwind
colors: {
  custom: {
    50: '#a76bc5',
    500: '#7c27ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c27ab;
$custom-light: #a76bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27ab",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 278.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.19953,
    "h": 310
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#7C27AB
secondary
#8AC569
accent
#E6427C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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