#7D2278#7D2278

#7D2278 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.160 H 330.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7D2278
RGBrgb(125, 34, 120)
HSLhsl(303, 57%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 72.8%, 4%, 51%)
CIE-LABlab(31.49, 49.03, -28.77)
CIE-LCHlch(31.49, 56.85, 329.60°)
OKLaboklab(43.04% 0.1391 -0.0793)
OKLCHoklch(43.04% 0.16 330.3)
XYZxyz(12.4196, 6.8610, 18.4358)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2278 #227D27
analogous
#54227D #7D2278 #7D224A
triadic
#7D2278 #787D22 #22787D
tetradic
#7D2278 #7D5422 #227D27 #224A7D
square
#7D2278 #7D5422 #227D27 #224A7D
split-complementary
#7D2278 #4A7D22 #227D54
monochromatic
#1D081C #4D154A #7D2278 #AD2FA6 #CE4BC7

Accessibility & contrast

On white

8.85
#7D2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2278
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2278#FFFFFF#000000##FFFFFF
##7D22781.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19427A
Deuteranopia (green-blind)
#3D4E76
Tritanopia (blue-blind)
#822D4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d2278;
/* rgb */ color: rgb(125, 34, 120);
/* oklch */ color: oklch(43.0% 0.160 330.3);
Tailwind
colors: {
  custom: {
    50: '#a6669f',
    500: '#7d2278',
    950: '#000000',
  },
}
SCSS
$custom: #7d2278;
$custom-light: #a6669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2278",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 303.297,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.16008,
    "h": 330.3
  },
  "luminance": 0.0686
}

Semantic roles & 50–950 ramp

primary
#7D2278
secondary
#4BB051
accent
#E05047
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2278

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

Preview Lab → · Contrast checker → · Palette generator →

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