#7F1F84#7F1F84

#7F1F84 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.174 H 325.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7F1F84
RGBrgb(127, 31, 132)
HSLhsl(297, 62%, 32%)
HSVhsv(297, 77%, 52%)
CMYKcmyk(3.8%, 76.5%, 0%, 48.2%)
CIE-LABlab(32.17, 52.67, -35.20)
CIE-LCHlch(32.17, 63.35, 326.24°)
OKLaboklab(43.82% 0.1444 -0.0979)
OKLCHoklch(43.82% 0.174 325.9)
XYZxyz(13.4070, 7.1588, 22.5010)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F84 #24841F
analogous
#4D1F84 #7F1F84 #841F57
triadic
#7F1F84 #847F1F #1F847F
tetradic
#7F1F84 #844D1F #24841F #1F5784
square
#7F1F84 #844D1F #24841F #1F5784
split-complementary
#7F1F84 #57841F #1F844D
monochromatic
#200821 #4F1352 #7F1F84 #AF2BB6 #CD49D4

Accessibility & contrast

On white

8.64
#7F1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F84
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F84#FFFFFF#000000##FFFFFF
##7F1F841.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#365082
Tritanopia (blue-blind)
#823150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1f84;
/* rgb */ color: rgb(127, 31, 132);
/* oklch */ color: oklch(43.8% 0.174 325.9);
Tailwind
colors: {
  custom: {
    50: '#a866a8',
    500: '#7f1f84',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f84;
$custom-light: #a866a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f84",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 297.03,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43822,
    "c": 0.17444,
    "h": 325.9
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#7F1F84
secondary
#4EB748
accent
#E5434B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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