#7C27BD#7C27BD

#7C27BD is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.3% C 0.217 H 304.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7C27BD
RGBrgb(124, 39, 189)
HSLhsl(274, 66%, 45%)
HSVhsv(274, 79%, 74%)
CMYKcmyk(34.4%, 79.4%, 0%, 25.9%)
CIE-LABlab(36.76, 60.88, -62.28)
CIE-LCHlch(36.76, 87.09, 314.35°)
OKLaboklab(48.26% 0.124 -0.1775)
OKLCHoklch(48.26% 0.217 304.9)
XYZxyz(18.2209, 9.4103, 48.9907)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27BD #68BD27
analogous
#3127BD #7C27BD #BD27B3
triadic
#7C27BD #BD7C27 #27BD7C
tetradic
#7C27BD #BD3127 #68BD27 #27B3BD
square
#7C27BD #BD3127 #68BD27 #27B3BD
split-complementary
#7C27BD #B3BD27 #27BD31
monochromatic
#391258 #5B1D8A #7C27BD #9A48D9 #B67BE4

Accessibility & contrast

On white

7.29
#7C27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27BD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27BD#FFFFFF#000000##FFFFFF
##7C27BD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#704F72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c27bd;
/* rgb */ color: rgb(124, 39, 189);
/* oklch */ color: oklch(48.3% 0.217 304.9);
Tailwind
colors: {
  custom: {
    50: '#a86cd2',
    500: '#7c27bd',
    950: '#000000',
  },
}
SCSS
$custom: #7c27bd;
$custom-light: #a86cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27bd",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 274,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4826,
    "c": 0.21654,
    "h": 304.9
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#7C27BD
secondary
#9ACC74
accent
#E93F89
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7C27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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