#7F1672#7F1672

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

Color values

HEX#7F1672
RGBrgb(127, 22, 114)
HSLhsl(307, 70%, 29%)
HSVhsv(307, 83%, 50%)
CMYKcmyk(0%, 82.7%, 10.2%, 50.2%)
CIE-LABlab(30.16, 52.39, -27.03)
CIE-LCHlch(30.16, 58.96, 332.71°)
OKLaboklab(42.05% 0.1523 -0.0742)
OKLCHoklch(42.05% 0.169 334)
XYZxyz(12.0767, 6.3018, 16.4967)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1672 #167F23
analogous
#58167F #7F1672 #7F163D
triadic
#7F1672 #727F16 #16727F
tetradic
#7F1672 #7F5816 #167F23 #163D7F
square
#7F1672 #7F5816 #167F23 #163D7F
split-complementary
#7F1672 #3D7F16 #167F58
monochromatic
#1A0517 #4B0D43 #7F1672 #B31FA1 #DC34C7

Accessibility & contrast

On white

9.29
#7F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1672
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1672#FFFFFF#000000##FFFFFF
##7F16721.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#852244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1672;
/* rgb */ color: rgb(127, 22, 114);
/* oklch */ color: oklch(42.1% 0.169 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8629b',
    500: '#7f1672',
    950: '#000000',
  },
}
SCSS
$custom: #7f1672;
$custom-light: #a8629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1672",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 307.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.16935,
    "h": 334
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#7F1672
secondary
#3DB44C
accent
#ED513B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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