#7E278D#7E278D

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

Color values

HEX#7E278D
RGBrgb(126, 39, 141)
HSLhsl(291, 57%, 35%)
HSVhsv(291, 72%, 55%)
CMYKcmyk(10.6%, 72.3%, 0%, 44.7%)
CIE-LABlab(33.59, 51.19, -38.52)
CIE-LCHlch(33.59, 64.06, 323.04°)
OKLaboklab(44.98% 0.1348 -0.1077)
OKLCHoklch(44.98% 0.173 321.4)
XYZxyz(14.1369, 7.8105, 25.9571)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E278D #368D27
analogous
#4B278D #7E278D #8D2769
triadic
#7E278D #8D7E27 #278D7E
tetradic
#7E278D #8D4B27 #368D27 #27698D
square
#7E278D #8D4B27 #368D27 #27698D
split-complementary
#7E278D #698D27 #278D4B
monochromatic
#280C2D #531A5D #7E278D #A934BD #C15CD2

Accessibility & contrast

On white

8.20
#7E278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E278D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E278D#FFFFFF#000000##FFFFFF
##7E278D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#7F3A57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e278d;
/* rgb */ color: rgb(126, 39, 141);
/* oklch */ color: oklch(45.0% 0.173 321.4);
Tailwind
colors: {
  custom: {
    50: '#a76aaf',
    500: '#7e278d',
    950: '#000000',
  },
}
SCSS
$custom: #7e278d;
$custom-light: #a76aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e278d",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 291.176,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44982,
    "c": 0.17251,
    "h": 321.4
  },
  "luminance": 0.0781
}

Semantic roles & 50–950 ramp

primary
#7E278D
secondary
#67B759
accent
#E0485E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E278D

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

Preview Lab → · Contrast checker → · Palette generator →

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