#7F178F#7F178F

#7F178F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.191 H 321.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7F178F
RGBrgb(127, 23, 143)
HSLhsl(292, 72%, 33%)
HSVhsv(292, 84%, 56%)
CMYKcmyk(11.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(32.05, 57.03, -42.20)
CIE-LCHlch(32.05, 70.95, 323.50°)
OKLaboklab(43.97% 0.1499 -0.1183)
OKLCHoklch(43.97% 0.191 321.7)
XYZxyz(14.0162, 7.1088, 26.6151)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F178F #278F17
analogous
#43178F #7F178F #8F1763
triadic
#7F178F #8F7F17 #178F7F
tetradic
#7F178F #8F4317 #278F17 #17638F
square
#7F178F #8F4317 #278F17 #17638F
split-complementary
#7F178F #638F17 #178F43
monochromatic
#210626 #500F5A #7F178F #AE1FC4 #CB40E0

Accessibility & contrast

On white

8.67
#7F178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F178F
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F178F#FFFFFF#000000##FFFFFF
##7F178F1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#803255
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f178f;
/* rgb */ color: rgb(127, 23, 143);
/* oklch */ color: oklch(44.0% 0.191 321.7);
Tailwind
colors: {
  custom: {
    50: '#a864b0',
    500: '#7f178f',
    950: '#000000',
  },
}
SCSS
$custom: #7f178f;
$custom-light: #a864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f178f",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 292,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.19097,
    "h": 321.7
  },
  "luminance": 0.07108
}

Semantic roles & 50–950 ramp

primary
#7F178F
secondary
#52C141
accent
#EF3951
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F178F

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

Preview Lab → · Contrast checker → · Palette generator →

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