#7E277E#7E277E

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

Color values

HEX#7E277E
RGBrgb(126, 39, 126)
HSLhsl(300, 53%, 32%)
HSVhsv(300, 69%, 49%)
CMYKcmyk(0%, 69%, 0%, 50.6%)
CIE-LABlab(32.69, 48.38, -30.63)
CIE-LCHlch(32.69, 57.27, 327.66°)
OKLaboklab(44.05% 0.1349 -0.0847)
OKLCHoklch(44.05% 0.159 327.9)
XYZxyz(13.0954, 7.3939, 20.4720)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E277E #277E27
analogous
#53277E #7E277E #7E2753
triadic
#7E277E #7E7E27 #277E7E
tetradic
#7E277E #7E5327 #277E27 #27537E
square
#7E277E #7E5327 #277E27 #27537E
split-complementary
#7E277E #537E27 #277E53
monochromatic
#210A21 #4F194F #7E277E #AD35AD #CA55CA

Accessibility & contrast

On white

8.47
#7E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E277E
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E277E#FFFFFF#000000##FFFFFF
##7E277E1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e277e;
/* rgb */ color: rgb(126, 39, 126);
/* oklch */ color: oklch(44.0% 0.159 327.9);
Tailwind
colors: {
  custom: {
    50: '#a669a4',
    500: '#7e277e',
    950: '#000000',
  },
}
SCSS
$custom: #7e277e;
$custom-light: #a669a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e277e",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.15929,
    "h": 327.9
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#7E277E
secondary
#52AF52
accent
#DC4C4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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