#7F1B96#7F1B96

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

Color values

HEX#7F1B96
RGBrgb(127, 27, 150)
HSLhsl(289, 69%, 35%)
HSVhsv(289, 82%, 59%)
CMYKcmyk(15.3%, 82%, 0%, 41.2%)
CIE-LABlab(32.92, 57.23, -45.11)
CIE-LCHlch(32.92, 72.87, 321.75°)
OKLaboklab(44.73% 0.1459 -0.1269)
OKLCHoklch(44.73% 0.193 319)
XYZxyz(14.6486, 7.4986, 29.5240)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B96 #32961B
analogous
#411B96 #7F1B96 #961B70
triadic
#7F1B96 #967F1B #1B967F
tetradic
#7F1B96 #96411B #32961B #1B7096
square
#7F1B96 #96411B #32961B #1B7096
split-complementary
#7F1B96 #70961B #1B9641
monochromatic
#27082E #531262 #7F1B96 #AB24CA #C44DDF

Accessibility & contrast

On white

8.40
#7F1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B96
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B96#FFFFFF#000000##FFFFFF
##7F1B961.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1b96;
/* rgb */ color: rgb(127, 27, 150);
/* oklch */ color: oklch(44.7% 0.193 319.0);
Tailwind
colors: {
  custom: {
    50: '#a865b5',
    500: '#7f1b96',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b96;
$custom-light: #a865b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b96",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 288.78,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44731,
    "c": 0.19338,
    "h": 319
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#7F1B96
secondary
#62C14C
accent
#EC3B5D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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