#7F277D#7F277D

#7F277D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.159 H 328.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7F277D
RGBrgb(127, 39, 125)
HSLhsl(301, 53%, 33%)
HSVhsv(301, 69%, 50%)
CMYKcmyk(0%, 69.3%, 1.6%, 50.2%)
CIE-LABlab(32.80, 48.46, -29.82)
CIE-LCHlch(32.80, 56.90, 328.39°)
OKLaboklab(44.14% 0.136 -0.0823)
OKLCHoklch(44.14% 0.159 328.8)
XYZxyz(13.1795, 7.4447, 20.1409)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F277D #277F29
analogous
#55277F #7F277D #7F2751
triadic
#7F277D #7D7F27 #277D7F
tetradic
#7F277D #7F5527 #277F29 #27517F
square
#7F277D #7F5527 #277F29 #27517F
split-complementary
#7F277D #517F27 #277F55
monochromatic
#210A21 #50194F #7F277D #AE35AB #CB55C8

Accessibility & contrast

On white

8.44
#7F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F277D
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F277D#FFFFFF#000000##FFFFFF
##7F277D1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#83334F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f277d;
/* rgb */ color: rgb(127, 39, 125);
/* oklch */ color: oklch(44.1% 0.159 328.8);
Tailwind
colors: {
  custom: {
    50: '#a769a3',
    500: '#7f277d',
    950: '#000000',
  },
}
SCSS
$custom: #7f277d;
$custom-light: #a769a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f277d",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 301.364,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.15899,
    "h": 328.8
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#7F277D
secondary
#52B054
accent
#DC4F4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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