#7F1884#7F1884

#7F1884 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.181 H 326.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7F1884
RGBrgb(127, 24, 132)
HSLhsl(297, 69%, 31%)
HSVhsv(297, 82%, 52%)
CMYKcmyk(3.8%, 81.8%, 0%, 48.2%)
CIE-LABlab(31.42, 54.81, -36.39)
CIE-LCHlch(31.42, 65.79, 326.42°)
OKLaboklab(43.29% 0.1504 -0.1013)
OKLCHoklch(43.29% 0.181 326)
XYZxyz(13.2436, 6.8322, 22.4465)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1884 #1D8418
analogous
#491884 #7F1884 #841853
triadic
#7F1884 #847F18 #18847F
tetradic
#7F1884 #844918 #1D8418 #185384
square
#7F1884 #844918 #1D8418 #185384
split-complementary
#7F1884 #538418 #188449
monochromatic
#1B051C #4D0F50 #7F1884 #B121B8 #D43BDB

Accessibility & contrast

On white

8.87
#7F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1884
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1884#FFFFFF#000000##FFFFFF
##7F18841.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#334E82
Tritanopia (blue-blind)
#822D4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1884;
/* rgb */ color: rgb(127, 24, 132);
/* oklch */ color: oklch(43.3% 0.181 326.0);
Tailwind
colors: {
  custom: {
    50: '#a863a8',
    500: '#7f1884',
    950: '#000000',
  },
}
SCSS
$custom: #7f1884;
$custom-light: #a863a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1884",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 297.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.1813,
    "h": 326
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#7F1884
secondary
#45B840
accent
#EC3C44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1884

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

Preview Lab → · Contrast checker → · Palette generator →

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