#7F1971#7F1971

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

Color values

HEX#7F1971
RGBrgb(127, 25, 113)
HSLhsl(308, 67%, 30%)
HSVhsv(308, 80%, 50%)
CMYKcmyk(0%, 80.3%, 11%, 50.2%)
CIE-LABlab(30.40, 51.39, -26.02)
CIE-LCHlch(30.40, 57.60, 333.15°)
OKLaboklab(42.21% 0.1497 -0.0712)
OKLCHoklch(42.21% 0.166 334.5)
XYZxyz(12.0808, 6.4006, 16.2188)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1971 #197F27
analogous
#5A197F #7F1971 #7F193E
triadic
#7F1971 #717F19 #19717F
tetradic
#7F1971 #7F5A19 #197F27 #193E7F
square
#7F1971 #7F5A19 #197F27 #193E7F
split-complementary
#7F1971 #3E7F19 #197F5A
monochromatic
#1A0517 #4C0F44 #7F1971 #B2239E #D83AC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1971#FFFFFF#000000##FFFFFF
##7F19711.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)
#173E73
Deuteranopia (green-blind)
#3E4D6F
Tritanopia (blue-blind)
#852344
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1971;
/* rgb */ color: rgb(127, 25, 113);
/* oklch */ color: oklch(42.2% 0.166 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8639a',
    500: '#7f1971',
    950: '#000000',
  },
}
SCSS
$custom: #7f1971;
$custom-light: #a8639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1971",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 308.235,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.16578,
    "h": 334.5
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#7F1971
secondary
#41B350
accent
#EA553E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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