#7F1277#7F1277

#7F1277 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.176 H 331.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7F1277
RGBrgb(127, 18, 119)
HSLhsl(304, 75%, 28%)
HSVhsv(304, 86%, 50%)
CMYKcmyk(0%, 85.8%, 6.3%, 50.2%)
CIE-LABlab(30.10, 54.18, -30.31)
CIE-LCHlch(30.10, 62.08, 330.78°)
OKLaboklab(42.1% 0.1552 -0.0836)
OKLCHoklch(42.1% 0.176 331.7)
XYZxyz(12.2985, 6.2776, 18.0132)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1277 #127F1A
analogous
#50127F #7F1277 #7F1240
triadic
#7F1277 #777F12 #12777F
tetradic
#7F1277 #7F5012 #127F1A #12407F
square
#7F1277 #7F5012 #127F1A #12407F
split-complementary
#7F1277 #407F12 #127F50
monochromatic
#1B0419 #490A45 #7F1277 #B51AA9 #E12BD3

Accessibility & contrast

On white

9.31
#7F1277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1277
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1277#FFFFFF#000000##FFFFFF
##7F12771.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033D7A
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#852246
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1277;
/* rgb */ color: rgb(127, 18, 119);
/* oklch */ color: oklch(42.1% 0.176 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8619e',
    500: '#7f1277',
    950: '#000000',
  },
}
SCSS
$custom: #7f1277;
$custom-light: #a8619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1277",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 304.404,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.17632,
    "h": 331.7
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#7F1277
secondary
#38B541
accent
#F24436
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1277

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

Preview Lab → · Contrast checker → · Palette generator →

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