#7F1C91#7F1C91

#7F1C91 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.188 H 320.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7F1C91
RGBrgb(127, 28, 145)
HSLhsl(291, 68%, 34%)
HSVhsv(291, 81%, 57%)
CMYKcmyk(12.4%, 80.7%, 0%, 43.1%)
CIE-LABlab(32.67, 55.99, -42.43)
CIE-LCHlch(32.67, 70.26, 322.84°)
OKLaboklab(44.45% 0.1459 -0.119)
OKLCHoklch(44.45% 0.188 320.8)
XYZxyz(14.2779, 7.3877, 27.4565)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C91 #2E911C
analogous
#451C91 #7F1C91 #911C69
triadic
#7F1C91 #917F1C #1C917F
tetradic
#7F1C91 #91451C #2E911C #1C6991
square
#7F1C91 #91451C #2E911C #1C6991
split-complementary
#7F1C91 #69911C #1C9145
monochromatic
#25082A #52125E #7F1C91 #AC26C4 #C64BDC

Accessibility & contrast

On white

8.48
#7F1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C91
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C91#FFFFFF#000000##FFFFFF
##7F1C911.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#2A508E
Tritanopia (blue-blind)
#803557
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1c91;
/* rgb */ color: rgb(127, 28, 145);
/* oklch */ color: oklch(44.5% 0.188 320.8);
Tailwind
colors: {
  custom: {
    50: '#a865b2',
    500: '#7f1c91',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c91;
$custom-light: #a865b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c91",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 290.769,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44451,
    "c": 0.18827,
    "h": 320.8
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#7F1C91
secondary
#5CBE4A
accent
#EB3D58
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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