#7F1780#7F1780

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

Color values

HEX#7F1780
RGBrgb(127, 23, 128)
HSLhsl(299, 70%, 30%)
HSVhsv(299, 82%, 50%)
CMYKcmyk(0.8%, 82%, 0%, 49.8%)
CIE-LABlab(31.08, 54.40, -34.43)
CIE-LCHlch(31.08, 64.38, 327.67°)
OKLaboklab(42.97% 0.1514 -0.0956)
OKLCHoklch(42.97% 0.179 327.7)
XYZxyz(12.9549, 6.6843, 21.0258)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1780 #188017
analogous
#4B1780 #7F1780 #80174C
triadic
#7F1780 #807F17 #17807F
tetradic
#7F1780 #804B17 #188017 #174C80
square
#7F1780 #804B17 #188017 #174C80
split-complementary
#7F1780 #4C8017 #17804B
monochromatic
#1A051A #4C0E4C #7F1780 #B220B4 #D936DB

Accessibility & contrast

On white

8.99
#7F1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1780
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1780#FFFFFF#000000##FFFFFF
##7F17801.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1780;
/* rgb */ color: rgb(127, 23, 128);
/* oklch */ color: oklch(43.0% 0.179 327.7);
Tailwind
colors: {
  custom: {
    50: '#a863a5',
    500: '#7f1780',
    950: '#000000',
  },
}
SCSS
$custom: #7f1780;
$custom-light: #a863a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1780",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 299.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42968,
    "c": 0.17903,
    "h": 327.7
  },
  "luminance": 0.06683
}

Semantic roles & 50–950 ramp

primary
#7F1780
secondary
#3FB43E
accent
#EC3B3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1780

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

Preview Lab → · Contrast checker → · Palette generator →

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