#7F277A#7F277A

#7F277A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.156 H 330.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7F277A
RGBrgb(127, 39, 122)
HSLhsl(303, 53%, 33%)
HSVhsv(303, 69%, 50%)
CMYKcmyk(0%, 69.3%, 3.9%, 50.2%)
CIE-LABlab(32.63, 47.93, -28.20)
CIE-LCHlch(32.63, 55.61, 329.53°)
OKLaboklab(43.97% 0.1358 -0.0777)
OKLCHoklch(43.97% 0.156 330.2)
XYZxyz(12.9907, 7.3692, 19.1468)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F277A #277F2C
analogous
#58277F #7F277A #7F274E
triadic
#7F277A #7A7F27 #277A7F
tetradic
#7F277A #7F5827 #277F2C #274E7F
square
#7F277A #7F5827 #277F2C #274E7F
split-complementary
#7F277A #4E7F27 #277F58
monochromatic
#210A20 #50194D #7F277A #AE35A7 #CB55C4

Accessibility & contrast

On white

8.49
#7F277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F277A
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F277A#FFFFFF#000000##FFFFFF
##7F277A1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#405178
Tritanopia (blue-blind)
#84314D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f277a;
/* rgb */ color: rgb(127, 39, 122);
/* oklch */ color: oklch(44.0% 0.156 330.2);
Tailwind
colors: {
  custom: {
    50: '#a769a1',
    500: '#7f277a',
    950: '#000000',
  },
}
SCSS
$custom: #7f277a;
$custom-light: #a769a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f277a",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 303.409,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.15647,
    "h": 330.2
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#7F277A
secondary
#52B057
accent
#DC544B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F277A

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

Preview Lab → · Contrast checker → · Palette generator →

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