#7D1278#7D1278

#7D1278 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.176 H 330.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7D1278
RGBrgb(125, 18, 120)
HSLhsl(303, 75%, 28%)
HSVhsv(303, 86%, 49%)
CMYKcmyk(0%, 85.6%, 4%, 51%)
CIE-LABlab(29.79, 53.92, -31.46)
CIE-LCHlch(29.79, 62.43, 329.73°)
OKLaboklab(41.83% 0.1531 -0.087)
OKLCHoklch(41.83% 0.176 330.4)
XYZxyz(12.0639, 6.1496, 18.3173)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1278 #127D17
analogous
#4C127D #7D1278 #7D1242
triadic
#7D1278 #787D12 #12787D
tetradic
#7D1278 #7D4C12 #127D17 #12427D
square
#7D1278 #7D4C12 #127D17 #12427D
split-complementary
#7D1278 #427D12 #127D4C
monochromatic
#1B041A #480A45 #7D1278 #B21AAB #E029D8

Accessibility & contrast

On white

9.42
#7D1278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7D1278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1278
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1278#FFFFFF#000000##FFFFFF
##7D12781.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#374B76
Tritanopia (blue-blind)
#822447
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1278;
/* rgb */ color: rgb(125, 18, 120);
/* oklch */ color: oklch(41.8% 0.176 330.4);
Tailwind
colors: {
  custom: {
    50: '#a6619f',
    500: '#7d1278',
    950: '#000000',
  },
}
SCSS
$custom: #7d1278;
$custom-light: #a6619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1278",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 120
  },
  "hsl": {
    "h": 302.804,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.17611,
    "h": 330.4
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#7D1278
secondary
#38B33E
accent
#F13F36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1278

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

Preview Lab → · Contrast checker → · Palette generator →

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