#7F1980#7F1980

#7F1980 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.177 H 327.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7F1980
RGBrgb(127, 25, 128)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(0.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(31.27, 53.84, -34.13)
CIE-LCHlch(31.27, 63.74, 327.63°)
OKLaboklab(43.11% 0.1498 -0.0947)
OKLCHoklch(43.11% 0.177 327.7)
XYZxyz(12.9961, 6.7668, 21.0395)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1980 #1A8019
analogous
#4B1980 #7F1980 #80194E
triadic
#7F1980 #807F19 #19807F
tetradic
#7F1980 #804B19 #1A8019 #194E80
square
#7F1980 #804B19 #1A8019 #194E80
split-complementary
#7F1980 #4E8019 #19804B
monochromatic
#19051A #4C0F4D #7F1980 #B223B3 #D73BD9

Accessibility & contrast

On white

8.92
#7F1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1980
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1980#FFFFFF#000000##FFFFFF
##7F19801.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#364E7E
Tritanopia (blue-blind)
#832B4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1980;
/* rgb */ color: rgb(127, 25, 128);
/* oklch */ color: oklch(43.1% 0.177 327.7);
Tailwind
colors: {
  custom: {
    50: '#a864a5',
    500: '#7f1980',
    950: '#000000',
  },
}
SCSS
$custom: #7f1980;
$custom-light: #a864a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1980",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 299.417,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.43105,
    "c": 0.17724,
    "h": 327.7
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#7F1980
secondary
#42B441
accent
#EA3E3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1980

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

Preview Lab → · Contrast checker → · Palette generator →

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