#7D178F#7D178F

#7D178F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.190 H 320.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7D178F
RGBrgb(125, 23, 143)
HSLhsl(291, 72%, 33%)
HSVhsv(291, 84%, 56%)
CMYKcmyk(12.6%, 83.9%, 0%, 43.9%)
CIE-LABlab(31.71, 56.66, -42.77)
CIE-LCHlch(31.71, 70.99, 322.95°)
OKLaboklab(43.66% 0.1475 -0.1201)
OKLCHoklch(43.66% 0.19 320.9)
XYZxyz(13.7212, 6.9567, 26.6013)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D178F #298F17
analogous
#41178F #7D178F #8F1765
triadic
#7D178F #8F7D17 #178F7D
tetradic
#7D178F #8F4117 #298F17 #17658F
square
#7D178F #8F4117 #298F17 #17658F
split-complementary
#7D178F #658F17 #178F41
monochromatic
#210626 #4F0F5A #7D178F #AB1FC4 #C840E0

Accessibility & contrast

On white

8.78
#7D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D178F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D178F#FFFFFF#000000##FFFFFF
##7D178F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#274E8C
Tritanopia (blue-blind)
#7E3255
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d178f;
/* rgb */ color: rgb(125, 23, 143);
/* oklch */ color: oklch(43.7% 0.190 320.9);
Tailwind
colors: {
  custom: {
    50: '#a763b0',
    500: '#7d178f',
    950: '#000000',
  },
}
SCSS
$custom: #7d178f;
$custom-light: #a763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d178f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 291,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43661,
    "c": 0.19019,
    "h": 320.9
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#7D178F
secondary
#54C141
accent
#EF3954
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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