#7F147B#7F147B

#7F147B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.178 H 329.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7F147B
RGBrgb(127, 20, 123)
HSLhsl(302, 73%, 29%)
HSVhsv(302, 84%, 50%)
CMYKcmyk(0%, 84.3%, 3.1%, 50.2%)
CIE-LABlab(30.50, 54.34, -32.20)
CIE-LCHlch(30.50, 63.17, 329.35°)
OKLaboklab(42.46% 0.1538 -0.0891)
OKLCHoklch(42.46% 0.178 329.9)
XYZxyz(12.5776, 6.4434, 19.3163)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F147B #147F18
analogous
#4E147F #7F147B #7F1446
triadic
#7F147B #7B7F14 #147B7F
tetradic
#7F147B #7F4E14 #147F18 #14467F
square
#7F147B #7F4E14 #147F18 #14467F
split-complementary
#7F147B #467F14 #147F4E
monochromatic
#1A041A #4A0C48 #7F147B #B41CAE #DE2FD8

Accessibility & contrast

On white

9.18
#7F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F147B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F147B#FFFFFF#000000##FFFFFF
##7F147B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#374D79
Tritanopia (blue-blind)
#842649
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f147b;
/* rgb */ color: rgb(127, 20, 123);
/* oklch */ color: oklch(42.5% 0.178 329.9);
Tailwind
colors: {
  custom: {
    50: '#a862a1',
    500: '#7f147b',
    950: '#000000',
  },
}
SCSS
$custom: #7f147b;
$custom-light: #a862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f147b",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 302.243,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42464,
    "c": 0.17773,
    "h": 329.9
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#7F147B
secondary
#3BB43F
accent
#EF3F38
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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