#7F1280#7F1280

#7F1280 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.183 H 327.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7F1280
RGBrgb(127, 18, 128)
HSLhsl(299, 75%, 29%)
HSVhsv(299, 86%, 50%)
CMYKcmyk(0.8%, 85.9%, 0%, 49.8%)
CIE-LABlab(30.65, 55.64, -35.11)
CIE-LCHlch(30.65, 65.79, 327.74°)
OKLaboklab(42.67% 0.1549 -0.0976)
OKLCHoklch(42.67% 0.183 327.8)
XYZxyz(12.8648, 6.5041, 20.9957)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1280 #138012
analogous
#481280 #7F1280 #80124A
triadic
#7F1280 #807F12 #12807F
tetradic
#7F1280 #804812 #138012 #124A80
square
#7F1280 #804812 #138012 #124A80
split-complementary
#7F1280 #4A8012 #128048
monochromatic
#1B041B #4A0A4A #7F1280 #B41AB6 #E02BE1

Accessibility & contrast

On white

9.13
#7F1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7F1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1280
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1280#FFFFFF#000000##FFFFFF
##7F12801.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#344D7E
Tritanopia (blue-blind)
#83284B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1280;
/* rgb */ color: rgb(127, 18, 128);
/* oklch */ color: oklch(42.7% 0.183 327.8);
Tailwind
colors: {
  custom: {
    50: '#a861a5',
    500: '#7f1280',
    950: '#000000',
  },
}
SCSS
$custom: #7f1280;
$custom-light: #a861a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1280",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 299.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42666,
    "c": 0.18305,
    "h": 327.8
  },
  "luminance": 0.06503
}

Semantic roles & 50–950 ramp

primary
#7F1280
secondary
#39B638
accent
#F23638
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1280

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

Preview Lab → · Contrast checker → · Palette generator →

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