#7F1B8D#7F1B8D

#7F1B8D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.186 H 322.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7F1B8D
RGBrgb(127, 27, 141)
HSLhsl(293, 68%, 33%)
HSVhsv(293, 81%, 55%)
CMYKcmyk(9.9%, 80.9%, 0%, 44.7%)
CIE-LABlab(32.30, 55.55, -40.57)
CIE-LCHlch(32.30, 68.79, 323.86°)
OKLaboklab(44.1% 0.1472 -0.1135)
OKLCHoklch(44.1% 0.186 322.3)
XYZxyz(13.9516, 7.2198, 25.8528)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1B8D #298D1B
analogous
#461B8D #7F1B8D #8D1B62
triadic
#7F1B8D #8D7F1B #1B8D7F
tetradic
#7F1B8D #8D461B #298D1B #1B628D
square
#7F1B8D #8D461B #298D1B #1B628D
split-complementary
#7F1B8D #628D1B #1B8D46
monochromatic
#220726 #51115A #7F1B8D #AD25C0 #C947DC

Accessibility & contrast

On white

8.59
#7F1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1B8D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1B8D#FFFFFF#000000##FFFFFF
##7F1B8D1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2D508A
Tritanopia (blue-blind)
#813354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1b8d;
/* rgb */ color: rgb(127, 27, 141);
/* oklch */ color: oklch(44.1% 0.186 322.3);
Tailwind
colors: {
  custom: {
    50: '#a865af',
    500: '#7f1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1b8d;
$custom-light: #a865af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1b8d",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 292.632,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44103,
    "c": 0.18588,
    "h": 322.3
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#7F1B8D
secondary
#55BD46
accent
#EB3D52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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