#7F1478#7F1478

#7F1478 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.175 H 331.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7F1478
RGBrgb(127, 20, 120)
HSLhsl(304, 73%, 29%)
HSVhsv(304, 84%, 50%)
CMYKcmyk(0%, 84.3%, 5.5%, 50.2%)
CIE-LABlab(30.33, 53.86, -30.59)
CIE-LCHlch(30.33, 61.94, 330.41°)
OKLaboklab(42.28% 0.1538 -0.0844)
OKLCHoklch(42.28% 0.175 331.2)
XYZxyz(12.3927, 6.3694, 18.3424)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1478 #147F1B
analogous
#51147F #7F1478 #7F1443
triadic
#7F1478 #787F14 #14787F
tetradic
#7F1478 #7F5114 #147F1B #14437F
square
#7F1478 #7F5114 #147F1B #14437F
split-complementary
#7F1478 #437F14 #147F51
monochromatic
#1A0419 #4A0C46 #7F1478 #B41CAA #DE2FD3

Accessibility & contrast

On white

9.24
#7F1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1478
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1478#FFFFFF#000000##FFFFFF
##7F14781.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#842447
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1478;
/* rgb */ color: rgb(127, 20, 120);
/* oklch */ color: oklch(42.3% 0.175 331.2);
Tailwind
colors: {
  custom: {
    50: '#a8629f',
    500: '#7f1478',
    950: '#000000',
  },
}
SCSS
$custom: #7f1478;
$custom-light: #a8629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1478",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 303.925,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42279,
    "c": 0.17548,
    "h": 331.2
  },
  "luminance": 0.06368
}

Semantic roles & 50–950 ramp

primary
#7F1478
secondary
#3BB443
accent
#EF4438
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1478

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

Preview Lab → · Contrast checker → · Palette generator →

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