#7F1886#7F1886

#7F1886 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.183 H 325.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7F1886
RGBrgb(127, 24, 134)
HSLhsl(296, 70%, 31%)
HSVhsv(296, 82%, 53%)
CMYKcmyk(5.2%, 82.1%, 0%, 47.5%)
CIE-LABlab(31.55, 55.16, -37.43)
CIE-LCHlch(31.55, 66.66, 325.84°)
OKLaboklab(43.42% 0.1502 -0.1044)
OKLCHoklch(43.42% 0.183 325.2)
XYZxyz(13.3818, 6.8874, 23.1742)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1886 #1F8618
analogous
#481886 #7F1886 #861856
triadic
#7F1886 #867F18 #18867F
tetradic
#7F1886 #864818 #1F8618 #185686
square
#7F1886 #864818 #1F8618 #185686
split-complementary
#7F1886 #568618 #188648
monochromatic
#1D051E #4E0F52 #7F1886 #B021BA #D23CDC

Accessibility & contrast

On white

8.83
#7F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7F1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1886
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1886#FFFFFF#000000##FFFFFF
##7F18861.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#324E84
Tritanopia (blue-blind)
#822E50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1886;
/* rgb */ color: rgb(127, 24, 134);
/* oklch */ color: oklch(43.4% 0.183 325.2);
Tailwind
colors: {
  custom: {
    50: '#a864aa',
    500: '#7f1886',
    950: '#000000',
  },
}
SCSS
$custom: #7f1886;
$custom-light: #a864aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1886",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 296.182,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43424,
    "c": 0.18289,
    "h": 325.2
  },
  "luminance": 0.06887
}

Semantic roles & 50–950 ramp

primary
#7F1886
secondary
#48BA40
accent
#EC3B47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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