#7E27B6#7E27B6

#7E27B6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.210 H 307.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7E27B6
RGBrgb(126, 39, 182)
HSLhsl(277, 65%, 43%)
HSVhsv(277, 79%, 71%)
CMYKcmyk(30.8%, 78.6%, 0%, 28.6%)
CIE-LABlab(36.49, 59.67, -58.59)
CIE-LCHlch(36.49, 83.62, 315.52°)
OKLaboklab(47.95% 0.1286 -0.1666)
OKLCHoklch(47.95% 0.21 307.7)
XYZxyz(17.7714, 9.2643, 45.0989)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27B6 #5FB627
analogous
#3627B6 #7E27B6 #B627A7
triadic
#7E27B6 #B67E27 #27B67E
tetradic
#7E27B6 #B63627 #5FB627 #27A7B6
square
#7E27B6 #B63627 #5FB627 #27A7B6
split-complementary
#7E27B6 #A7B627 #27B636
monochromatic
#381151 #5B1C84 #7E27B6 #9D43D7 #B776E2

Accessibility & contrast

On white

7.36
#7E27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7E27B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27B6
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27B6#FFFFFF#000000##FFFFFF
##7E27B61.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#754C6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e27b6;
/* rgb */ color: rgb(126, 39, 182);
/* oklch */ color: oklch(48.0% 0.210 307.7);
Tailwind
colors: {
  custom: {
    50: '#a96ccd',
    500: '#7e27b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e27b6;
$custom-light: #a96ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27b6",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 276.503,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47954,
    "c": 0.21041,
    "h": 307.7
  },
  "luminance": 0.09264
}

Semantic roles & 50–950 ramp

primary
#7E27B6
secondary
#93C970
accent
#E84082
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7E27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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