#7F1C96#7F1C96

#7F1C96 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.8% C 0.192 H 319.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7F1C96
RGBrgb(127, 28, 150)
HSLhsl(289, 69%, 35%)
HSVhsv(289, 81%, 59%)
CMYKcmyk(15.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(33.02, 56.94, -44.95)
CIE-LCHlch(33.02, 72.54, 321.71°)
OKLaboklab(44.8% 0.1452 -0.1264)
OKLCHoklch(44.8% 0.192 319)
XYZxyz(14.6719, 7.5453, 29.5318)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C96 #33961C
analogous
#421C96 #7F1C96 #961C70
triadic
#7F1C96 #967F1C #1C967F
tetradic
#7F1C96 #96421C #33961C #1C7096
square
#7F1C96 #96421C #33961C #1C7096
split-complementary
#7F1C96 #70961C #1C9642
monochromatic
#28092F #531262 #7F1C96 #AB26CA #C34EDE

Accessibility & contrast

On white

8.37
#7F1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C96
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C96#FFFFFF#000000##FFFFFF
##7F1C961.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#255193
Tritanopia (blue-blind)
#7F385A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f1c96;
/* rgb */ color: rgb(127, 28, 150);
/* oklch */ color: oklch(44.8% 0.192 319.0);
Tailwind
colors: {
  custom: {
    50: '#a866b5',
    500: '#7f1c96',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c96;
$custom-light: #a866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c96",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 288.689,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44802,
    "c": 0.19248,
    "h": 319
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#7F1C96
secondary
#63C14D
accent
#EB3C5D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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