#7F1F82#7F1F82

#7F1F82 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.173 H 326.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7F1F82
RGBrgb(127, 31, 130)
HSLhsl(298, 61%, 32%)
HSVhsv(298, 76%, 51%)
CMYKcmyk(2.3%, 76.2%, 0%, 49%)
CIE-LABlab(32.04, 52.31, -34.15)
CIE-LCHlch(32.04, 62.47, 326.87°)
OKLaboklab(43.7% 0.1444 -0.0948)
OKLCHoklch(43.7% 0.173 326.7)
XYZxyz(13.2714, 7.1046, 21.7871)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F82 #22821F
analogous
#4E1F82 #7F1F82 #821F54
triadic
#7F1F82 #827F1F #1F827F
tetradic
#7F1F82 #824E1F #22821F #1F5482
square
#7F1F82 #824E1F #22821F #1F5482
split-complementary
#7F1F82 #54821F #1F824E
monochromatic
#1E071F #4F1351 #7F1F82 #AF2BB3 #CF48D3

Accessibility & contrast

On white

8.67
#7F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F82
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F82#FFFFFF#000000##FFFFFF
##7F1F821.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034485
Deuteranopia (green-blind)
#375080
Tritanopia (blue-blind)
#83304F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1f82;
/* rgb */ color: rgb(127, 31, 130);
/* oklch */ color: oklch(43.7% 0.173 326.7);
Tailwind
colors: {
  custom: {
    50: '#a766a7',
    500: '#7f1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f82;
$custom-light: #a766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f82",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 298.182,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.17279,
    "h": 326.7
  },
  "luminance": 0.07104
}

Semantic roles & 50–950 ramp

primary
#7F1F82
secondary
#4BB548
accent
#E54348
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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