#7F1986#7F1986

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

Color values

HEX#7F1986
RGBrgb(127, 25, 134)
HSLhsl(296, 69%, 31%)
HSVhsv(296, 81%, 53%)
CMYKcmyk(5.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(31.65, 54.88, -37.28)
CIE-LCHlch(31.65, 66.34, 325.81°)
OKLaboklab(43.49% 0.1494 -0.1039)
OKLCHoklch(43.49% 0.182 325.2)
XYZxyz(13.4028, 6.9294, 23.1812)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1986 #208619
analogous
#481986 #7F1986 #861956
triadic
#7F1986 #867F19 #19867F
tetradic
#7F1986 #864819 #208619 #195686
square
#7F1986 #864819 #208619 #195686
split-complementary
#7F1986 #568619 #198648
monochromatic
#1D061F #4E0F52 #7F1986 #B023BA #D13EDB

Accessibility & contrast

On white

8.80
#7F1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1986
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1986#FFFFFF#000000##FFFFFF
##7F19861.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1986;
/* rgb */ color: rgb(127, 25, 134);
/* oklch */ color: oklch(43.5% 0.182 325.2);
Tailwind
colors: {
  custom: {
    50: '#a864aa',
    500: '#7f1986',
    950: '#000000',
  },
}
SCSS
$custom: #7f1986;
$custom-light: #a864aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1986",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 296.147,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.182,
    "h": 325.2
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

primary
#7F1986
secondary
#49BA41
accent
#EB3C48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1986

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

Preview Lab → · Contrast checker → · Palette generator →

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