#7F1B94#7F1B94

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

Color values

HEX#7F1B94
RGBrgb(127, 27, 148)
HSLhsl(290, 69%, 34%)
HSVhsv(290, 82%, 58%)
CMYKcmyk(14.2%, 81.8%, 0%, 42%)
CIE-LABlab(32.78, 56.85, -44.11)
CIE-LCHlch(32.78, 71.96, 322.19°)
OKLaboklab(44.59% 0.1462 -0.1239)
OKLCHoklch(44.59% 0.192 319.7)
XYZxyz(14.4889, 7.4348, 28.6831)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B94 #30941B
analogous
#431B94 #7F1B94 #941B6D
triadic
#7F1B94 #947F1B #1B947F
tetradic
#7F1B94 #94431B #30941B #1B6D94
square
#7F1B94 #94431B #30941B #1B6D94
split-complementary
#7F1B94 #6D941B #1B9443
monochromatic
#26082C #531260 #7F1B94 #AB24C8 #C54BDE

Accessibility & contrast

On white

8.44
#7F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B94
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B94#FFFFFF#000000##FFFFFF
##7F1B941.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#275091
Tritanopia (blue-blind)
#7F3658
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1b94;
/* rgb */ color: rgb(127, 27, 148);
/* oklch */ color: oklch(44.6% 0.192 319.7);
Tailwind
colors: {
  custom: {
    50: '#a865b4',
    500: '#7f1b94',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b94;
$custom-light: #a865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b94",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 289.587,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.1917,
    "h": 319.7
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#7F1B94
secondary
#5FC04B
accent
#EC3C5A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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