#7F2A71#7F2A71

#7F2A71 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.145 H 334.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2A71
RGBrgb(127, 42, 113)
HSLhsl(310, 50%, 33%)
HSVhsv(310, 67%, 50%)
CMYKcmyk(0%, 66.9%, 11%, 50.2%)
CIE-LABlab(32.62, 45.13, -22.55)
CIE-LCHlch(32.62, 50.45, 333.46°)
OKLaboklab(43.81% 0.1313 -0.0614)
OKLCHoklch(43.81% 0.145 334.9)
XYZxyz(12.5611, 7.3612, 16.3789)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A71 #2A7F38
analogous
#622A7F #7F2A71 #7F2A46
triadic
#7F2A71 #717F2A #2A717F
tetradic
#7F2A71 #7F622A #2A7F38 #2A467F
square
#7F2A71 #7F622A #2A7F38 #2A467F
split-complementary
#7F2A71 #467F2A #2A7F62
monochromatic
#230C1F #511B48 #7F2A71 #AD399A #C95BB7

Accessibility & contrast

On white

8.50
#7F2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A71
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A71#FFFFFF#000000##FFFFFF
##7F2A711.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#853049
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2a71;
/* rgb */ color: rgb(127, 42, 113);
/* oklch */ color: oklch(43.8% 0.145 334.9);
Tailwind
colors: {
  custom: {
    50: '#a76a9a',
    500: '#7f2a71',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a71;
$custom-light: #a76a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a71",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 309.882,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43805,
    "c": 0.14492,
    "h": 334.9
  },
  "luminance": 0.0736
}

Semantic roles & 50–950 ramp

primary
#7F2A71
secondary
#57AE65
accent
#DA654E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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