#7F1F9D#7F1F9D

#7F1F9D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.196 H 316.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7F1F9D
RGBrgb(127, 31, 157)
HSLhsl(286, 67%, 37%)
HSVhsv(286, 80%, 62%)
CMYKcmyk(19.1%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.83, 57.37, -47.90)
CIE-LCHlch(33.83, 74.74, 320.14°)
OKLaboklab(45.53% 0.1416 -0.1351)
OKLCHoklch(45.53% 0.196 316.4)
XYZxyz(15.3272, 7.9270, 32.6144)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F9D #3D9D1F
analogous
#401F9D #7F1F9D #9D1F7C
triadic
#7F1F9D #9D7F1F #1F9D7F
tetradic
#7F1F9D #9D401F #3D9D1F #1F7C9D
square
#7F1F9D #9D401F #3D9D1F #1F7C9D
split-complementary
#7F1F9D #7C9D1F #1F9D40
monochromatic
#2C0B37 #56156A #7F1F9D #A829D0 #BE58DE

Accessibility & contrast

On white

8.12
#7F1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F9D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F9D#FFFFFF#000000##FFFFFF
##7F1F9D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1E529A
Tritanopia (blue-blind)
#7D3C5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1f9d;
/* rgb */ color: rgb(127, 31, 157);
/* oklch */ color: oklch(45.5% 0.196 316.4);
Tailwind
colors: {
  custom: {
    50: '#a867bb',
    500: '#7f1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f9d;
$custom-light: #a867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f9d",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 285.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45531,
    "c": 0.19573,
    "h": 316.4
  },
  "luminance": 0.07926
}

Semantic roles & 50–950 ramp

primary
#7F1F9D
secondary
#70C256
accent
#EA3E67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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