#7D277D#7D277D

#7D277D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.158 H 327.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7D277D
RGBrgb(125, 39, 125)
HSLhsl(300, 52%, 32%)
HSVhsv(300, 69%, 49%)
CMYKcmyk(0%, 68.8%, 0%, 51%)
CIE-LABlab(32.46, 47.95, -30.37)
CIE-LCHlch(32.46, 56.76, 327.65°)
OKLaboklab(43.84% 0.1337 -0.084)
OKLCHoklch(43.84% 0.158 327.9)
XYZxyz(12.8845, 7.2926, 20.1270)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D277D #277D27
analogous
#52277D #7D277D #7D2752
triadic
#7D277D #7D7D27 #277D7D
tetradic
#7D277D #7D5227 #277D27 #27527D
square
#7D277D #7D5227 #277D27 #27527D
split-complementary
#7D277D #527D27 #277D52
monochromatic
#200A20 #4E184E #7D277D #AC36AC #CA55CA

Accessibility & contrast

On white

8.54
#7D277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7D277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D277D
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D277D#FFFFFF#000000##FFFFFF
##7D277D1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#3D507B
Tritanopia (blue-blind)
#81334F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d277d;
/* rgb */ color: rgb(125, 39, 125);
/* oklch */ color: oklch(43.8% 0.158 327.9);
Tailwind
colors: {
  custom: {
    50: '#a669a3',
    500: '#7d277d',
    950: '#000000',
  },
}
SCSS
$custom: #7d277d;
$custom-light: #a669a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d277d",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43836,
    "c": 0.15788,
    "h": 327.9
  },
  "luminance": 0.07292
}

Semantic roles & 50–950 ramp

primary
#7D277D
secondary
#51AF51
accent
#DC4C4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D277D

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

Preview Lab → · Contrast checker → · Palette generator →

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