#7F1F86#7F1F86

#7F1F86 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.176 H 325.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7F1F86
RGBrgb(127, 31, 134)
HSLhsl(296, 62%, 32%)
HSVhsv(296, 77%, 53%)
CMYKcmyk(5.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(32.29, 53.02, -36.25)
CIE-LCHlch(32.29, 64.23, 325.64°)
OKLaboklab(43.95% 0.1443 -0.101)
OKLCHoklch(43.95% 0.176 325)
XYZxyz(13.5451, 7.2141, 23.2287)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F86 #26861F
analogous
#4B1F86 #7F1F86 #861F5A
triadic
#7F1F86 #867F1F #1F867F
tetradic
#7F1F86 #864B1F #26861F #1F5A86
square
#7F1F86 #864B1F #26861F #1F5A86
split-complementary
#7F1F86 #5A861F #1F864B
monochromatic
#210823 #501454 #7F1F86 #AE2AB8 #CC4AD5

Accessibility & contrast

On white

8.60
#7F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F86
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F86#FFFFFF#000000##FFFFFF
##7F1F861.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#355084
Tritanopia (blue-blind)
#823151
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1f86;
/* rgb */ color: rgb(127, 31, 134);
/* oklch */ color: oklch(44.0% 0.176 325.0);
Tailwind
colors: {
  custom: {
    50: '#a866aa',
    500: '#7f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f86;
$custom-light: #a866aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f86",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 295.922,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4395,
    "c": 0.1761,
    "h": 325
  },
  "luminance": 0.07213
}

Semantic roles & 50–950 ramp

primary
#7F1F86
secondary
#51B849
accent
#E5424D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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