#7F1871#7F1871

#7F1871 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.167 H 334.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7F1871
RGBrgb(127, 24, 113)
HSLhsl(308, 68%, 30%)
HSVhsv(308, 81%, 50%)
CMYKcmyk(0%, 81.1%, 11%, 50.2%)
CIE-LABlab(30.30, 51.68, -26.18)
CIE-LCHlch(30.30, 57.93, 333.14°)
OKLaboklab(42.13% 0.1506 -0.0717)
OKLCHoklch(42.13% 0.167 334.5)
XYZxyz(12.0598, 6.3586, 16.2118)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1871 #187F26
analogous
#59187F #7F1871 #7F183E
triadic
#7F1871 #717F18 #18717F
tetradic
#7F1871 #7F5918 #187F26 #183E7F
square
#7F1871 #7F5918 #187F26 #183E7F
split-complementary
#7F1871 #3E7F18 #187F59
monochromatic
#1A0517 #4C0E43 #7F1871 #B2229F #D938C3

Accessibility & contrast

On white

9.24
#7F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1871
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1871#FFFFFF#000000##FFFFFF
##7F18711.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#3E4D6F
Tritanopia (blue-blind)
#852244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1871;
/* rgb */ color: rgb(127, 24, 113);
/* oklch */ color: oklch(42.1% 0.167 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8639a',
    500: '#7f1871',
    950: '#000000',
  },
}
SCSS
$custom: #7f1871;
$custom-light: #a8639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1871",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 308.155,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.16676,
    "h": 334.5
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#7F1871
secondary
#3FB34F
accent
#EB543D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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