#7F2971#7F2971

#7F2971 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.7% C 0.146 H 334.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7F2971
RGBrgb(127, 41, 113)
HSLhsl(310, 51%, 33%)
HSVhsv(310, 68%, 50%)
CMYKcmyk(0%, 67.7%, 11%, 50.2%)
CIE-LABlab(32.46, 45.56, -22.79)
CIE-LCHlch(32.46, 50.94, 333.43°)
OKLaboklab(43.69% 0.1325 -0.0621)
OKLCHoklch(43.69% 0.146 334.9)
XYZxyz(12.5261, 7.2912, 16.3672)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2971 #297F37
analogous
#62297F #7F2971 #7F2946
triadic
#7F2971 #717F29 #29717F
tetradic
#7F2971 #7F6229 #297F37 #29467F
square
#7F2971 #7F6229 #297F37 #29467F
split-complementary
#7F2971 #467F29 #297F62
monochromatic
#220B1F #511A48 #7F2971 #AD389A #C959B7

Accessibility & contrast

On white

8.54
#7F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2971
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2971#FFFFFF#000000##FFFFFF
##7F29711.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294473
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#852F49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2971;
/* rgb */ color: rgb(127, 41, 113);
/* oklch */ color: oklch(43.7% 0.146 334.9);
Tailwind
colors: {
  custom: {
    50: '#a76a9a',
    500: '#7f2971',
    950: '#000000',
  },
}
SCSS
$custom: #7f2971;
$custom-light: #a76a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2971",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 309.767,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.14635,
    "h": 334.9
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#7F2971
secondary
#55AF64
accent
#DB644D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2971

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

Preview Lab → · Contrast checker → · Palette generator →

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