#7F277E#7F277E

#7F277E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.160 H 328.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7F277E
RGBrgb(127, 39, 126)
HSLhsl(301, 53%, 33%)
HSVhsv(301, 69%, 50%)
CMYKcmyk(0%, 69.3%, 0.8%, 50.2%)
CIE-LABlab(32.85, 48.63, -30.36)
CIE-LCHlch(32.85, 57.33, 328.03°)
OKLaboklab(44.2% 0.1361 -0.0839)
OKLCHoklch(44.2% 0.16 328.3)
XYZxyz(13.2437, 7.4704, 20.4790)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F277E #277F28
analogous
#54277F #7F277E #7F2752
triadic
#7F277E #7E7F27 #277E7F
tetradic
#7F277E #7F5427 #277F28 #27527F
square
#7F277E #7F5427 #277F28 #27527F
split-complementary
#7F277E #527F27 #277F54
monochromatic
#210A21 #501950 #7F277E #AE35AC #CB55CA

Accessibility & contrast

On white

8.42
#7F277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F277E
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F277E#FFFFFF#000000##FFFFFF
##7F277E1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f277e;
/* rgb */ color: rgb(127, 39, 126);
/* oklch */ color: oklch(44.2% 0.160 328.3);
Tailwind
colors: {
  custom: {
    50: '#a769a4',
    500: '#7f277e',
    950: '#000000',
  },
}
SCSS
$custom: #7f277e;
$custom-light: #a769a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f277e",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 300.682,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44202,
    "c": 0.15984,
    "h": 328.3
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#7F277E
secondary
#52B053
accent
#DC4D4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F277E

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

Preview Lab → · Contrast checker → · Palette generator →

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