#7F1996#7F1996

#7F1996 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.195 H 319.1°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7F1996
RGBrgb(127, 25, 150)
HSLhsl(289, 71%, 34%)
HSVhsv(289, 83%, 59%)
CMYKcmyk(15.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(32.72, 57.79, -45.42)
CIE-LCHlch(32.72, 73.51, 321.83°)
OKLaboklab(44.6% 0.1474 -0.1278)
OKLCHoklch(44.6% 0.195 319.1)
XYZxyz(14.6043, 7.4100, 29.5093)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1996 #309619
analogous
#411996 #7F1996 #96196F
triadic
#7F1996 #967F19 #19967F
tetradic
#7F1996 #964119 #309619 #196F96
square
#7F1996 #964119 #309619 #196F96
split-complementary
#7F1996 #6F9619 #199641
monochromatic
#26082D #531062 #7F1996 #AB22CA #C549E1

Accessibility & contrast

On white

8.46
#7F1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1996
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1996#FFFFFF#000000##FFFFFF
##7F19961.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#235093
Tritanopia (blue-blind)
#7F3659
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1996;
/* rgb */ color: rgb(127, 25, 150);
/* oklch */ color: oklch(44.6% 0.195 319.1);
Tailwind
colors: {
  custom: {
    50: '#a865b6',
    500: '#7f1996',
    950: '#000000',
  },
}
SCSS
$custom: #7f1996;
$custom-light: #a865b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1996",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 288.96,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44595,
    "c": 0.19508,
    "h": 319.1
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#7F1996
secondary
#5FC249
accent
#EE3A5B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1996

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

Preview Lab → · Contrast checker → · Palette generator →

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