#7F1F97#7F1F97

#7F1F97 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.191 H 318.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7F1F97
RGBrgb(127, 31, 151)
HSLhsl(288, 66%, 36%)
HSVhsv(288, 79%, 59%)
CMYKcmyk(15.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(33.41, 56.20, -44.93)
CIE-LCHlch(33.41, 71.95, 321.36°)
OKLaboklab(45.1% 0.1426 -0.1264)
OKLCHoklch(45.1% 0.191 318.5)
XYZxyz(14.8275, 7.7271, 29.9826)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F97 #37971F
analogous
#431F97 #7F1F97 #971F73
triadic
#7F1F97 #977F1F #1F977F
tetradic
#7F1F97 #97431F #37971F #1F7397
square
#7F1F97 #97431F #37971F #1F7397
split-complementary
#7F1F97 #73971F #1F9743
monochromatic
#2A0A31 #541564 #7F1F97 #AA29CA #C154DC

Accessibility & contrast

On white

8.25
#7F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F97
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F97#FFFFFF#000000##FFFFFF
##7F1F971.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#265294
Tritanopia (blue-blind)
#7E3A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f1f97;
/* rgb */ color: rgb(127, 31, 151);
/* oklch */ color: oklch(45.1% 0.191 318.5);
Tailwind
colors: {
  custom: {
    50: '#a867b6',
    500: '#7f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f97;
$custom-light: #a867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f97",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 288,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.19053,
    "h": 318.5
  },
  "luminance": 0.07726
}

Semantic roles & 50–950 ramp

primary
#7F1F97
secondary
#68BF52
accent
#E93F61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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