#7F1671#7F1671

#7F1671 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.169 H 334.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7F1671
RGBrgb(127, 22, 113)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 83%, 50%)
CMYKcmyk(0%, 82.7%, 11%, 50.2%)
CIE-LABlab(30.11, 52.24, -26.48)
CIE-LCHlch(30.11, 58.57, 333.12°)
OKLaboklab(41.99% 0.1522 -0.0726)
OKLCHoklch(41.99% 0.169 334.5)
XYZxyz(12.0201, 6.2792, 16.1985)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1671 #167F24
analogous
#59167F #7F1671 #7F163D
triadic
#7F1671 #717F16 #16717F
tetradic
#7F1671 #7F5916 #167F24 #163D7F
square
#7F1671 #7F5916 #167F24 #163D7F
split-complementary
#7F1671 #3D7F16 #167F59
monochromatic
#1A0517 #4B0D43 #7F1671 #B31F9F #DC34C5

Accessibility & contrast

On white

9.31
#7F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1671
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1671#FFFFFF#000000##FFFFFF
##7F16711.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#852143
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1671;
/* rgb */ color: rgb(127, 22, 113);
/* oklch */ color: oklch(42.0% 0.169 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8629a',
    500: '#7f1671',
    950: '#000000',
  },
}
SCSS
$custom: #7f1671;
$custom-light: #a8629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1671",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 308,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41994,
    "c": 0.16862,
    "h": 334.5
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#7F1671
secondary
#3DB44D
accent
#ED523B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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