#7F2C7A#7F2C7A

#7F2C7A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.149 H 330.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7F2C7A
RGBrgb(127, 44, 122)
HSLhsl(304, 49%, 34%)
HSVhsv(304, 65%, 50%)
CMYKcmyk(0%, 65.4%, 3.9%, 50.2%)
CIE-LABlab(33.39, 45.81, -27.00)
CIE-LCHlch(33.39, 53.18, 329.48°)
OKLaboklab(44.52% 0.1298 -0.0742)
OKLCHoklch(44.52% 0.15 330.2)
XYZxyz(13.1659, 7.7195, 19.2051)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C7A #2C7F31
analogous
#5A2C7F #7F2C7A #7F2C50
triadic
#7F2C7A #7A7F2C #2C7A7F
tetradic
#7F2C7A #7F5A2C #2C7F31 #2C507F
square
#7F2C7A #7F5A2C #2C7F31 #2C507F
split-complementary
#7F2C7A #507F2C #2C7F5A
monochromatic
#240D23 #521C4E #7F2C7A #AC3CA6 #C75EC1

Accessibility & contrast

On white

8.26
#7F2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7F2C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C7A
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C7A#FFFFFF#000000##FFFFFF
##7F2C7A1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#425378
Tritanopia (blue-blind)
#84354F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2c7a;
/* rgb */ color: rgb(127, 44, 122);
/* oklch */ color: oklch(44.5% 0.149 330.2);
Tailwind
colors: {
  custom: {
    50: '#a76ca1',
    500: '#7f2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c7a;
$custom-light: #a76ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c7a",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 303.614,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4452,
    "c": 0.1495,
    "h": 330.2
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#7F2C7A
secondary
#59AD5E
accent
#D85850
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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