#7F1279#7F1279

#7F1279 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.178 H 330.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7F1279
RGBrgb(127, 18, 121)
HSLhsl(303, 75%, 28%)
HSVhsv(303, 86%, 50%)
CMYKcmyk(0%, 85.8%, 4.7%, 50.2%)
CIE-LABlab(30.22, 54.50, -31.39)
CIE-LCHlch(30.22, 62.89, 330.06°)
OKLaboklab(42.22% 0.1552 -0.0867)
OKLCHoklch(42.22% 0.178 330.8)
XYZxyz(12.4199, 6.3262, 18.6524)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1279 #127F18
analogous
#4E127F #7F1279 #7F1242
triadic
#7F1279 #797F12 #12797F
tetradic
#7F1279 #7F4E12 #127F18 #12427F
square
#7F1279 #7F4E12 #127F18 #12427F
split-complementary
#7F1279 #427F12 #127F4E
monochromatic
#1B041A #490A46 #7F1279 #B51AAC #E12BD7

Accessibility & contrast

On white

9.27
#7F1279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1279
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1279#FFFFFF#000000##FFFFFF
##7F12791.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#384C77
Tritanopia (blue-blind)
#842347
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1279;
/* rgb */ color: rgb(127, 18, 121);
/* oklch */ color: oklch(42.2% 0.178 330.8);
Tailwind
colors: {
  custom: {
    50: '#a861a0',
    500: '#7f1279',
    950: '#000000',
  },
}
SCSS
$custom: #7f1279;
$custom-light: #a861a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1279",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 121
  },
  "hsl": {
    "h": 303.303,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42224,
    "c": 0.1778,
    "h": 330.8
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#7F1279
secondary
#38B53F
accent
#F24036
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1279

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

Preview Lab → · Contrast checker → · Palette generator →

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