#7F1A6F#7F1A6F

#7F1A6F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.163 H 335.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7F1A6F
RGBrgb(127, 26, 111)
HSLhsl(310, 66%, 30%)
HSVhsv(310, 80%, 50%)
CMYKcmyk(0%, 79.5%, 12.6%, 50.2%)
CIE-LABlab(30.40, 50.78, -24.74)
CIE-LCHlch(30.40, 56.48, 334.02°)
OKLaboklab(42.17% 0.1487 -0.0676)
OKLCHoklch(42.17% 0.163 335.5)
XYZxyz(11.9912, 6.3996, 15.6396)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A6F #1A7F2A
analogous
#5D1A7F #7F1A6F #7F1A3C
triadic
#7F1A6F #6F7F1A #1A6F7F
tetradic
#7F1A6F #7F5D1A #1A7F2A #1A3C7F
square
#7F1A6F #7F5D1A #1A7F2A #1A3C7F
split-complementary
#7F1A6F #3C7F1A #1A7F5D
monochromatic
#190516 #4C1043 #7F1A6F #B2249B #D73CBF

Accessibility & contrast

On white

9.21
#7F1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A6F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A6F#FFFFFF#000000##FFFFFF
##7F1A6F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3E71
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#862343
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1a6f;
/* rgb */ color: rgb(127, 26, 111);
/* oklch */ color: oklch(42.2% 0.163 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86398',
    500: '#7f1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a6f;
$custom-light: #a86398;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a6f",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 309.505,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.16331,
    "h": 335.5
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#7F1A6F
secondary
#42B354
accent
#E95A3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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