#7F147D#7F147D

#7F147D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.179 H 329.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7F147D
RGBrgb(127, 20, 125)
HSLhsl(301, 73%, 29%)
HSVhsv(301, 84%, 50%)
CMYKcmyk(0%, 84.3%, 1.6%, 50.2%)
CIE-LABlab(30.63, 54.67, -33.27)
CIE-LCHlch(30.63, 64.00, 328.68°)
OKLaboklab(42.59% 0.1537 -0.0922)
OKLCHoklch(42.59% 0.179 329)
XYZxyz(12.7041, 6.4940, 19.9824)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F147D #147F16
analogous
#4C147F #7F147D #7F1448
triadic
#7F147D #7D7F14 #147D7F
tetradic
#7F147D #7F4C14 #147F16 #14487F
square
#7F147D #7F4C14 #147F16 #14487F
split-complementary
#7F147D #487F14 #147F4C
monochromatic
#1A041A #4A0C49 #7F147D #B41CB1 #DE2FDB

Accessibility & contrast

On white

9.14
#7F147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F147D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F147D#FFFFFF#000000##FFFFFF
##7F147D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#84274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f147d;
/* rgb */ color: rgb(127, 20, 125);
/* oklch */ color: oklch(42.6% 0.179 329.0);
Tailwind
colors: {
  custom: {
    50: '#a862a3',
    500: '#7f147d',
    950: '#000000',
  },
}
SCSS
$custom: #7f147d;
$custom-light: #a862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f147d",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 301.121,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42589,
    "c": 0.17924,
    "h": 329
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#7F147D
secondary
#3BB43D
accent
#EF3C38
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F147D

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

Preview Lab → · Contrast checker → · Palette generator →

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