#7F147E#7F147E

#7F147E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.180 H 328.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7F147E
RGBrgb(127, 20, 126)
HSLhsl(301, 73%, 29%)
HSVhsv(301, 84%, 50%)
CMYKcmyk(0%, 84.3%, 0.8%, 50.2%)
CIE-LABlab(30.69, 54.84, -33.80)
CIE-LCHlch(30.69, 64.42, 328.35°)
OKLaboklab(42.65% 0.1537 -0.0937)
OKLCHoklch(42.65% 0.18 328.6)
XYZxyz(12.7683, 6.5197, 20.3206)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F147E #147F15
analogous
#4B147F #7F147E #7F1449
triadic
#7F147E #7E7F14 #147E7F
tetradic
#7F147E #7F4B14 #147F15 #14497F
square
#7F147E #7F4B14 #147F15 #14497F
split-complementary
#7F147E #497F14 #147F4B
monochromatic
#1A041A #4A0C4A #7F147E #B41CB2 #DE2FDD

Accessibility & contrast

On white

9.12
#7F147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F147E
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F147E#FFFFFF#000000##FFFFFF
##7F147E1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#83274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f147e;
/* rgb */ color: rgb(127, 20, 126);
/* oklch */ color: oklch(42.7% 0.180 328.6);
Tailwind
colors: {
  custom: {
    50: '#a862a4',
    500: '#7f147e',
    950: '#000000',
  },
}
SCSS
$custom: #7f147e;
$custom-light: #a862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f147e",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 300.561,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42652,
    "c": 0.18,
    "h": 328.6
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#7F147E
secondary
#3BB43C
accent
#EF3A38
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F147E

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

Preview Lab → · Contrast checker → · Palette generator →

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