#7F2D79#7F2D79

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

Color values

HEX#7F2D79
RGBrgb(127, 45, 121)
HSLhsl(304, 48%, 34%)
HSVhsv(304, 65%, 50%)
CMYKcmyk(0%, 64.6%, 4.7%, 50.2%)
CIE-LABlab(33.50, 45.19, -26.21)
CIE-LCHlch(33.50, 52.24, 329.89°)
OKLaboklab(44.58% 0.1284 -0.072)
OKLCHoklch(44.58% 0.147 330.7)
XYZxyz(13.1419, 7.7702, 18.8931)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D79 #2D7F33
analogous
#5C2D7F #7F2D79 #7F2D50
triadic
#7F2D79 #797F2D #2D797F
tetradic
#7F2D79 #7F5C2D #2D7F33 #2D507F
square
#7F2D79 #7F5C2D #2D7F33 #2D507F
split-complementary
#7F2D79 #507F2D #2D7F5C
monochromatic
#250D23 #521D4E #7F2D79 #AC3DA4 #C760BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2D79#FFFFFF#000000##FFFFFF
##7F2D791.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)
#28487B
Deuteranopia (green-blind)
#435377
Tritanopia (blue-blind)
#84354F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2d79;
/* rgb */ color: rgb(127, 45, 121);
/* oklch */ color: oklch(44.6% 0.147 330.7);
Tailwind
colors: {
  custom: {
    50: '#a76ca0',
    500: '#7f2d79',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d79;
$custom-light: #a76ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d79",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 304.39,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.14718,
    "h": 330.7
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#7F2D79
secondary
#5BAD61
accent
#D75A51
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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