#7E27BD#7E27BD

#7E27BD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.217 H 305.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7E27BD
RGBrgb(126, 39, 189)
HSLhsl(275, 66%, 45%)
HSVhsv(275, 79%, 74%)
CMYKcmyk(33.3%, 79.4%, 0%, 25.9%)
CIE-LABlab(37.04, 61.20, -61.82)
CIE-LCHlch(37.04, 86.99, 314.71°)
OKLaboklab(48.51% 0.1268 -0.1761)
OKLCHoklch(48.51% 0.217 305.8)
XYZxyz(18.5130, 9.5609, 49.0044)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27BD #66BD27
analogous
#3327BD #7E27BD #BD27B1
triadic
#7E27BD #BD7E27 #27BD7E
tetradic
#7E27BD #BD3327 #66BD27 #27B1BD
square
#7E27BD #BD3327 #66BD27 #27B1BD
split-complementary
#7E27BD #B1BD27 #27BD33
monochromatic
#3A1258 #5C1D8A #7E27BD #9C48D9 #B87BE4

Accessibility & contrast

On white

7.21
#7E27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27BD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27BD#FFFFFF#000000##FFFFFF
##7E27BD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#724F72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e27bd;
/* rgb */ color: rgb(126, 39, 189);
/* oklch */ color: oklch(48.5% 0.217 305.8);
Tailwind
colors: {
  custom: {
    50: '#a96cd2',
    500: '#7e27bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e27bd;
$custom-light: #a96cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27bd",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 274.8,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48514,
    "c": 0.21698,
    "h": 305.8
  },
  "luminance": 0.09561
}

Semantic roles & 50–950 ramp

primary
#7E27BD
secondary
#99CC74
accent
#E93F86
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7E27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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