#7F1B8A#7F1B8A

#7F1B8A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.183 H 323.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7F1B8A
RGBrgb(127, 27, 138)
HSLhsl(294, 67%, 32%)
HSVhsv(294, 80%, 54%)
CMYKcmyk(8%, 80.4%, 0%, 45.9%)
CIE-LABlab(32.10, 55.01, -39.03)
CIE-LCHlch(32.10, 67.45, 324.65°)
OKLaboklab(43.9% 0.1475 -0.109)
OKLCHoklch(43.9% 0.183 323.5)
XYZxyz(13.7314, 7.1317, 24.6931)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B8A #268A1B
analogous
#471B8A #7F1B8A #8A1B5E
triadic
#7F1B8A #8A7F1B #1B8A7F
tetradic
#7F1B8A #8A471B #268A1B #1B5E8A
square
#7F1B8A #8A471B #268A1B #1B5E8A
split-complementary
#7F1B8A #5E8A1B #1B8A47
monochromatic
#210724 #501157 #7F1B8A #AE25BD #CC45DB

Accessibility & contrast

On white

8.66
#7F1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B8A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B8A#FFFFFF#000000##FFFFFF
##7F1B8A1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#304F87
Tritanopia (blue-blind)
#813153
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1b8a;
/* rgb */ color: rgb(127, 27, 138);
/* oklch */ color: oklch(43.9% 0.183 323.5);
Tailwind
colors: {
  custom: {
    50: '#a865ad',
    500: '#7f1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b8a;
$custom-light: #a865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b8a",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 294.054,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.439,
    "c": 0.18341,
    "h": 323.5
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#7F1B8A
secondary
#51BC45
accent
#EA3E4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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