#7F2E76#7F2E76

#7F2E76 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.5% C 0.143 H 332.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2E76
RGBrgb(127, 46, 118)
HSLhsl(307, 47%, 34%)
HSVhsv(307, 64%, 50%)
CMYKcmyk(0%, 63.8%, 7.1%, 50.2%)
CIE-LABlab(33.51, 44.21, -24.31)
CIE-LCHlch(33.51, 50.45, 331.20°)
OKLaboklab(44.54% 0.1267 -0.0665)
OKLCHoklch(44.54% 0.143 332.3)
XYZxyz(12.9994, 7.7750, 17.9521)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E76 #2E7F37
analogous
#602E7F #7F2E76 #7F2E4E
triadic
#7F2E76 #767F2E #2E767F
tetradic
#7F2E76 #7F602E #2E7F37 #2E4E7F
square
#7F2E76 #7F602E #2E7F37 #2E4E7F
split-complementary
#7F2E76 #4E7F2E #2E7F60
monochromatic
#250D23 #521E4C #7F2E76 #AC3EA0 #C661BB

Accessibility & contrast

On white

8.22
#7F2E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F2E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E76
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E76#FFFFFF#000000##FFFFFF
##7F2E761.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4778
Deuteranopia (green-blind)
#455374
Tritanopia (blue-blind)
#84354D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2e76;
/* rgb */ color: rgb(127, 46, 118);
/* oklch */ color: oklch(44.5% 0.143 332.3);
Tailwind
colors: {
  custom: {
    50: '#a76d9e',
    500: '#7f2e76',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e76;
$custom-light: #a76d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e76",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 306.667,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44538,
    "c": 0.14312,
    "h": 332.3
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#7F2E76
secondary
#5CAD65
accent
#D66051
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2E76

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

Preview Lab → · Contrast checker → · Palette generator →

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