#7F1F87#7F1F87

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

Color values

HEX#7F1F87
RGBrgb(127, 31, 135)
HSLhsl(295, 63%, 33%)
HSVhsv(295, 77%, 53%)
CMYKcmyk(5.9%, 77%, 0%, 47.1%)
CIE-LABlab(32.35, 53.20, -36.77)
CIE-LCHlch(32.35, 64.67, 325.35°)
OKLaboklab(44.01% 0.1442 -0.1025)
OKLCHoklch(44.01% 0.177 324.6)
XYZxyz(13.6152, 7.2421, 23.5977)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F87 #27871F
analogous
#4B1F87 #7F1F87 #871F5B
triadic
#7F1F87 #877F1F #1F877F
tetradic
#7F1F87 #874B1F #27871F #1F5B87
square
#7F1F87 #874B1F #27871F #1F5B87
split-complementary
#7F1F87 #5B871F #1F874B
monochromatic
#210823 #501455 #7F1F87 #AE2AB9 #CB4BD6

Accessibility & contrast

On white

8.58
#7F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F87
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F87#FFFFFF#000000##FFFFFF
##7F1F871.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#823252
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1f87;
/* rgb */ color: rgb(127, 31, 135);
/* oklch */ color: oklch(44.0% 0.177 324.6);
Tailwind
colors: {
  custom: {
    50: '#a866aa',
    500: '#7f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f87;
$custom-light: #a866aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f87",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 295.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44014,
    "c": 0.17693,
    "h": 324.6
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#7F1F87
secondary
#52B84A
accent
#E6424F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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