#7E277D#7E277D

#7E277D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.158 H 328.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7E277D
RGBrgb(126, 39, 125)
HSLhsl(301, 53%, 32%)
HSVhsv(301, 69%, 49%)
CMYKcmyk(0%, 69%, 0.8%, 50.6%)
CIE-LABlab(32.63, 48.21, -30.10)
CIE-LCHlch(32.63, 56.83, 328.02°)
OKLaboklab(43.99% 0.1349 -0.0832)
OKLCHoklch(43.99% 0.158 328.3)
XYZxyz(13.0312, 7.3682, 20.1339)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E277D #277E28
analogous
#54277E #7E277D #7E2751
triadic
#7E277D #7D7E27 #277D7E
tetradic
#7E277D #7E5427 #277E28 #27517E
square
#7E277D #7E5427 #277E28 #27517E
split-complementary
#7E277D #517E27 #277E54
monochromatic
#210A20 #4F194F #7E277D #AD35AB #CA55C9

Accessibility & contrast

On white

8.49
#7E277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E277D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E277D#FFFFFF#000000##FFFFFF
##7E277D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#3D517B
Tritanopia (blue-blind)
#82334F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e277d;
/* rgb */ color: rgb(126, 39, 125);
/* oklch */ color: oklch(44.0% 0.158 328.3);
Tailwind
colors: {
  custom: {
    50: '#a669a3',
    500: '#7e277d',
    950: '#000000',
  },
}
SCSS
$custom: #7e277d;
$custom-light: #a669a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e277d",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 300.69,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43989,
    "c": 0.15844,
    "h": 328.3
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#7E277D
secondary
#52AF53
accent
#DC4D4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E277D

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

Preview Lab → · Contrast checker → · Palette generator →

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