#7E278E#7E278E

#7E278E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.173 H 321.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7E278E
RGBrgb(126, 39, 142)
HSLhsl(291, 57%, 35%)
HSVhsv(291, 73%, 56%)
CMYKcmyk(11.3%, 72.5%, 0%, 44.3%)
CIE-LABlab(33.65, 51.38, -39.03)
CIE-LCHlch(33.65, 64.53, 322.78°)
OKLaboklab(45.05% 0.1347 -0.1092)
OKLCHoklch(45.05% 0.173 321)
XYZxyz(14.2116, 7.8404, 26.3507)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E278E #378E27
analogous
#4B278E #7E278E #8E276A
triadic
#7E278E #8E7E27 #278E7E
tetradic
#7E278E #8E4B27 #378E27 #276A8E
square
#7E278E #8E4B27 #378E27 #276A8E
split-complementary
#7E278E #6A8E27 #278E4B
monochromatic
#290D2E #531A5E #7E278E #A934BE #C05DD2

Accessibility & contrast

On white

8.18
#7E278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E278E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E278E#FFFFFF#000000##FFFFFF
##7E278E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#32528C
Tritanopia (blue-blind)
#7F3A58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e278e;
/* rgb */ color: rgb(126, 39, 142);
/* oklch */ color: oklch(45.0% 0.173 321.0);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7e278e',
    950: '#000000',
  },
}
SCSS
$custom: #7e278e;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e278e",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 290.68,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45048,
    "c": 0.1734,
    "h": 321
  },
  "luminance": 0.0784
}

Semantic roles & 50–950 ramp

primary
#7E278E
secondary
#68B859
accent
#E0485F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E278E

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

Preview Lab → · Contrast checker → · Palette generator →

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