#7E278F#7E278F

#7E278F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.174 H 320.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E278F
RGBrgb(126, 39, 143)
HSLhsl(290, 57%, 36%)
HSVhsv(290, 73%, 56%)
CMYKcmyk(11.9%, 72.7%, 0%, 43.9%)
CIE-LABlab(33.71, 51.58, -39.55)
CIE-LCHlch(33.71, 64.99, 322.52°)
OKLaboklab(45.11% 0.1347 -0.1107)
OKLCHoklch(45.11% 0.174 320.6)
XYZxyz(14.2870, 7.8706, 26.7479)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E278F #388F27
analogous
#4A278F #7E278F #8F276C
triadic
#7E278F #8F7E27 #278F7E
tetradic
#7E278F #8F4A27 #388F27 #276C8F
square
#7E278F #8F4A27 #388F27 #276C8F
split-complementary
#7E278F #6C8F27 #278F4A
monochromatic
#290D2F #541A5F #7E278F #A834BF #C05DD3

Accessibility & contrast

On white

8.16
#7E278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E278F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E278F#FFFFFF#000000##FFFFFF
##7E278F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#32528D
Tritanopia (blue-blind)
#7F3B58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e278f;
/* rgb */ color: rgb(126, 39, 143);
/* oklch */ color: oklch(45.1% 0.174 320.6);
Tailwind
colors: {
  custom: {
    50: '#a76ab0',
    500: '#7e278f',
    950: '#000000',
  },
}
SCSS
$custom: #7e278f;
$custom-light: #a76ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e278f",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 290.192,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45113,
    "c": 0.17431,
    "h": 320.6
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#7E278F
secondary
#69B85A
accent
#E04760
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E278F

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

Preview Lab → · Contrast checker → · Palette generator →

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