#7F1880#7F1880

#7F1880 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.178 H 327.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7F1880
RGBrgb(127, 24, 128)
HSLhsl(299, 68%, 30%)
HSVhsv(299, 81%, 50%)
CMYKcmyk(0.8%, 81.3%, 0%, 49.8%)
CIE-LABlab(31.17, 54.12, -34.28)
CIE-LCHlch(31.17, 64.07, 327.65°)
OKLaboklab(43.04% 0.1506 -0.0952)
OKLCHoklch(43.04% 0.178 327.7)
XYZxyz(12.9751, 6.7248, 21.0325)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1880 #198018
analogous
#4B1880 #7F1880 #80184D
triadic
#7F1880 #807F18 #18807F
tetradic
#7F1880 #804B18 #198018 #184D80
square
#7F1880 #804B18 #198018 #184D80
split-complementary
#7F1880 #4D8018 #18804B
monochromatic
#1A051A #4C0E4C #7F1880 #B222B4 #D839DA

Accessibility & contrast

On white

8.96
#7F1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1880
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1880#FFFFFF#000000##FFFFFF
##7F18801.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#364E7E
Tritanopia (blue-blind)
#832B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1880;
/* rgb */ color: rgb(127, 24, 128);
/* oklch */ color: oklch(43.0% 0.178 327.7);
Tailwind
colors: {
  custom: {
    50: '#a863a5',
    500: '#7f1880',
    950: '#000000',
  },
}
SCSS
$custom: #7f1880;
$custom-light: #a863a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1880",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 299.423,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.43036,
    "c": 0.17815,
    "h": 327.7
  },
  "luminance": 0.06724
}

Semantic roles & 50–950 ramp

primary
#7F1880
secondary
#41B440
accent
#EB3D3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1880

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

Preview Lab → · Contrast checker → · Palette generator →

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