#7F1B86#7F1B86

#7F1B86 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.180 H 325.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7F1B86
RGBrgb(127, 27, 134)
HSLhsl(296, 66%, 32%)
HSVhsv(296, 80%, 53%)
CMYKcmyk(5.2%, 79.9%, 0%, 47.5%)
CIE-LABlab(31.85, 54.29, -36.95)
CIE-LCHlch(31.85, 65.68, 325.76°)
OKLaboklab(43.64% 0.1478 -0.103)
OKLCHoklch(43.64% 0.18 325.1)
XYZxyz(13.4471, 7.0180, 23.1960)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B86 #22861B
analogous
#4A1B86 #7F1B86 #861B58
triadic
#7F1B86 #867F1B #1B867F
tetradic
#7F1B86 #864A1B #22861B #1B5886
square
#7F1B86 #864A1B #22861B #1B5886
split-complementary
#7F1B86 #58861B #1B864A
monochromatic
#1E0620 #4F1153 #7F1B86 #AF25B9 #CF42D9

Accessibility & contrast

On white

8.74
#7F1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B86
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B86#FFFFFF#000000##FFFFFF
##7F1B861.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#334F84
Tritanopia (blue-blind)
#822F50
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1b86;
/* rgb */ color: rgb(127, 27, 134);
/* oklch */ color: oklch(43.6% 0.180 325.1);
Tailwind
colors: {
  custom: {
    50: '#a865aa',
    500: '#7f1b86',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b86;
$custom-light: #a865aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b86",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 296.075,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43636,
    "c": 0.18014,
    "h": 325.1
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#7F1B86
secondary
#4BB944
accent
#E93E4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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