#7F1B79#7F1B79

#7F1B79 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.170 H 330.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7F1B79
RGBrgb(127, 27, 121)
HSLhsl(304, 65%, 30%)
HSVhsv(304, 79%, 50%)
CMYKcmyk(0%, 78.7%, 4.7%, 50.2%)
CIE-LABlab(31.06, 52.07, -30.05)
CIE-LCHlch(31.06, 60.12, 330.01°)
OKLaboklab(42.82% 0.1482 -0.0829)
OKLCHoklch(42.82% 0.17 330.8)
XYZxyz(12.5955, 6.6774, 18.7109)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B79 #1B7F21
analogous
#531B7F #7F1B79 #7F1B47
triadic
#7F1B79 #797F1B #1B797F
tetradic
#7F1B79 #7F531B #1B7F21 #1B477F
square
#7F1B79 #7F531B #1B7F21 #1B477F
split-complementary
#7F1B79 #477F1B #1B7F53
monochromatic
#1A0619 #4D1049 #7F1B79 #B126A9 #D63ECD

Accessibility & contrast

On white

8.99
#7F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B79
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B79#FFFFFF#000000##FFFFFF
##7F1B791.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F407B
Deuteranopia (green-blind)
#3B4E77
Tritanopia (blue-blind)
#842949
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1b79;
/* rgb */ color: rgb(127, 27, 121);
/* oklch */ color: oklch(42.8% 0.170 330.8);
Tailwind
colors: {
  custom: {
    50: '#a864a0',
    500: '#7f1b79',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b79;
$custom-light: #a864a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b79",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 303.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42822,
    "c": 0.16981,
    "h": 330.8
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#7F1B79
secondary
#43B34A
accent
#E84A40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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