#7E27B8#7E27B8

#7E27B8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.212 H 307.1°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7E27B8
RGBrgb(126, 39, 184)
HSLhsl(276, 65%, 44%)
HSVhsv(276, 79%, 72%)
CMYKcmyk(31.5%, 78.8%, 0%, 27.8%)
CIE-LABlab(36.65, 60.10, -59.52)
CIE-LCHlch(36.65, 84.59, 315.28°)
OKLaboklab(48.11% 0.1281 -0.1693)
OKLCHoklch(48.11% 0.212 307.1)
XYZxyz(17.9796, 9.3476, 46.1952)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27B8 #61B827
analogous
#3527B8 #7E27B8 #B827A9
triadic
#7E27B8 #B87E27 #27B87E
tetradic
#7E27B8 #B83527 #61B827 #27A9B8
square
#7E27B8 #B83527 #61B827 #27A9B8
split-complementary
#7E27B8 #A9B827 #27B835
monochromatic
#391253 #5B1C86 #7E27B8 #9D45D8 #B777E2

Accessibility & contrast

On white

7.32
#7E27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27B8
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27B8#FFFFFF#000000##FFFFFF
##7E27B81.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#744D70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e27b8;
/* rgb */ color: rgb(126, 39, 184);
/* oklch */ color: oklch(48.1% 0.212 307.1);
Tailwind
colors: {
  custom: {
    50: '#a96cce',
    500: '#7e27b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e27b8;
$custom-light: #a96cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27b8",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 276,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48112,
    "c": 0.21229,
    "h": 307.1
  },
  "luminance": 0.09347
}

Semantic roles & 50–950 ramp

primary
#7E27B8
secondary
#95CA71
accent
#E84083
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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