#7C27A9#7C27A9

#7C27A9 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.7% C 0.198 H 310.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7C27A9
RGBrgb(124, 39, 169)
HSLhsl(279, 63%, 41%)
HSVhsv(279, 77%, 66%)
CMYKcmyk(26.6%, 76.9%, 0%, 33.7%)
CIE-LABlab(35.20, 56.50, -52.94)
CIE-LCHlch(35.20, 77.43, 316.86°)
OKLaboklab(46.68% 0.1286 -0.15)
OKLCHoklch(46.68% 0.198 310.6)
XYZxyz(16.1977, 8.6011, 38.3353)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27A9 #54A927
analogous
#3B27A9 #7C27A9 #A92795
triadic
#7C27A9 #A97C27 #27A97C
tetradic
#7C27A9 #A93B27 #54A927 #2795A9
square
#7C27A9 #A93B27 #54A927 #2795A9
split-complementary
#7C27A9 #95A927 #27A93B
monochromatic
#331046 #581C77 #7C27A9 #9E3BD2 #B66DDD

Accessibility & contrast

On white

7.72
#7C27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27A9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27A9#FFFFFF#000000##FFFFFF
##7C27A91.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0354A6
Tritanopia (blue-blind)
#764667
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c27a9;
/* rgb */ color: rgb(124, 39, 169);
/* oklch */ color: oklch(46.7% 0.198 310.6);
Tailwind
colors: {
  custom: {
    50: '#a76bc3',
    500: '#7c27a9',
    950: '#000000',
  },
}
SCSS
$custom: #7c27a9;
$custom-light: #a76bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27a9",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 279.231,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46681,
    "c": 0.19765,
    "h": 310.6
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#7C27A9
secondary
#88C468
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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