#7C27B7#7C27B7

#7C27B7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.211 H 306.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7C27B7
RGBrgb(124, 39, 183)
HSLhsl(275, 65%, 44%)
HSVhsv(275, 79%, 72%)
CMYKcmyk(32.2%, 78.7%, 0%, 28.2%)
CIE-LABlab(36.28, 59.55, -59.53)
CIE-LCHlch(36.28, 84.20, 315.01°)
OKLaboklab(47.77% 0.1256 -0.1694)
OKLCHoklch(47.77% 0.211 306.5)
XYZxyz(17.5831, 9.1552, 45.6314)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27B7 #62B727
analogous
#3427B7 #7C27B7 #B727AA
triadic
#7C27B7 #B77C27 #27B77C
tetradic
#7C27B7 #B73427 #62B727 #27AAB7
square
#7C27B7 #B73427 #62B727 #27AAB7
split-complementary
#7C27B7 #AAB727 #27B734
monochromatic
#381152 #5A1C85 #7C27B7 #9B44D7 #B676E2

Accessibility & contrast

On white

7.42
#7C27B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7C27B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27B7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27B7#FFFFFF#000000##FFFFFF
##7C27B71.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#724C6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c27b7;
/* rgb */ color: rgb(124, 39, 183);
/* oklch */ color: oklch(47.8% 0.211 306.5);
Tailwind
colors: {
  custom: {
    50: '#a86bce',
    500: '#7c27b7',
    950: '#000000',
  },
}
SCSS
$custom: #7c27b7;
$custom-light: #a86bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27b7",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 183
  },
  "hsl": {
    "h": 275.417,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47774,
    "c": 0.21086,
    "h": 306.5
  },
  "luminance": 0.09155
}

Semantic roles & 50–950 ramp

primary
#7C27B7
secondary
#95C970
accent
#E84085
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C27B7

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

Preview Lab → · Contrast checker → · Palette generator →

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