#7F2C81#7F2C81

#7F2C81 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.156 H 326.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7F2C81
RGBrgb(127, 44, 129)
HSLhsl(299, 49%, 34%)
HSVhsv(299, 66%, 51%)
CMYKcmyk(1.6%, 65.9%, 0%, 49.4%)
CIE-LABlab(33.77, 47.08, -30.78)
CIE-LCHlch(33.77, 56.25, 326.83°)
OKLaboklab(44.92% 0.1303 -0.0852)
OKLCHoklch(44.92% 0.156 326.8)
XYZxyz(13.6153, 7.8992, 21.5722)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C81 #2E812C
analogous
#552C81 #7F2C81 #812C59
triadic
#7F2C81 #817F2C #2C817F
tetradic
#7F2C81 #81552C #2E812C #2C5981
square
#7F2C81 #81552C #2E812C #2C5981
split-complementary
#7F2C81 #59812C #2C8155
monochromatic
#250D26 #521C53 #7F2C81 #AC3CAF #C65FC8

Accessibility & contrast

On white

8.14
#7F2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C81
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C81#FFFFFF#000000##FFFFFF
##7F2C811.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4984
Deuteranopia (green-blind)
#3F537F
Tritanopia (blue-blind)
#833852
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2c81;
/* rgb */ color: rgb(127, 44, 129);
/* oklch */ color: oklch(44.9% 0.156 326.8);
Tailwind
colors: {
  custom: {
    50: '#a76ca6',
    500: '#7f2c81',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c81;
$custom-light: #a76ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c81",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 298.588,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44919,
    "c": 0.15564,
    "h": 326.8
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#7F2C81
secondary
#5CAF5A
accent
#D94F52
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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