#7F2C74#7F2C74

#7F2C74 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.2% C 0.144 H 333.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7F2C74
RGBrgb(127, 44, 116)
HSLhsl(308, 49%, 34%)
HSVhsv(308, 65%, 50%)
CMYKcmyk(0%, 65.4%, 8.7%, 50.2%)
CIE-LABlab(33.08, 44.76, -23.71)
CIE-LCHlch(33.08, 50.66, 332.09°)
OKLaboklab(44.19% 0.1291 -0.0648)
OKLCHoklch(44.19% 0.144 333.3)
XYZxyz(12.8055, 7.5753, 17.3073)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C74 #2C7F37
analogous
#602C7F #7F2C74 #7F2C4A
triadic
#7F2C74 #747F2C #2C747F
tetradic
#7F2C74 #7F602C #2C7F37 #2C4A7F
square
#7F2C74 #7F602C #2C7F37 #2C4A7F
split-complementary
#7F2C74 #4A7F2C #2C7F60
monochromatic
#240D21 #521C4A #7F2C74 #AC3C9E #C75EB9

Accessibility & contrast

On white

8.35
#7F2C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F2C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C74
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C74#FFFFFF#000000##FFFFFF
##7F2C741.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4676
Deuteranopia (green-blind)
#455272
Tritanopia (blue-blind)
#85334C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f2c74;
/* rgb */ color: rgb(127, 44, 116);
/* oklch */ color: oklch(44.2% 0.144 333.3);
Tailwind
colors: {
  custom: {
    50: '#a76b9c',
    500: '#7f2c74',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c74;
$custom-light: #a76b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c74",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 307.952,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44194,
    "c": 0.14443,
    "h": 333.3
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#7F2C74
secondary
#59AD65
accent
#D86250
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2C74

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

Preview Lab → · Contrast checker → · Palette generator →

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