#7F1F79#7F1F79

#7F1F79 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.166 H 330.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7F1F79
RGBrgb(127, 31, 121)
HSLhsl(304, 61%, 31%)
HSVhsv(304, 76%, 50%)
CMYKcmyk(0%, 75.6%, 4.7%, 50.2%)
CIE-LABlab(31.52, 50.76, -29.33)
CIE-LCHlch(31.52, 58.62, 329.98°)
OKLaboklab(43.15% 0.1444 -0.0809)
OKLCHoklch(43.15% 0.166 330.8)
XYZxyz(12.6935, 6.8735, 18.7436)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F79 #1F7F25
analogous
#551F7F #7F1F79 #7F1F49
triadic
#7F1F79 #797F1F #1F797F
tetradic
#7F1F79 #7F551F #1F7F25 #1F497F
square
#7F1F79 #7F551F #1F7F25 #1F497F
split-complementary
#7F1F79 #497F1F #1F7F55
monochromatic
#1D071B #4E134A #7F1F79 #B02BA8 #D246C9

Accessibility & contrast

On white

8.84
#7F1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F79
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F79#FFFFFF#000000##FFFFFF
##7F1F791.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427B
Deuteranopia (green-blind)
#3D4F77
Tritanopia (blue-blind)
#842B4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1f79;
/* rgb */ color: rgb(127, 31, 121);
/* oklch */ color: oklch(43.1% 0.166 330.8);
Tailwind
colors: {
  custom: {
    50: '#a766a0',
    500: '#7f1f79',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f79;
$custom-light: #a766a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f79",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 303.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43149,
    "c": 0.16552,
    "h": 330.8
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#7F1F79
secondary
#48B24E
accent
#E44E44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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