#7F1E8D#7F1E8D

#7F1E8D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.183 H 322.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7F1E8D
RGBrgb(127, 30, 141)
HSLhsl(292, 65%, 34%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(9.9%, 78.7%, 0%, 44.7%)
CIE-LABlab(32.62, 54.63, -40.05)
CIE-LCHlch(32.62, 67.74, 323.75°)
OKLaboklab(44.33% 0.1447 -0.1121)
OKLCHoklch(44.33% 0.183 322.2)
XYZxyz(14.0239, 7.3645, 25.8770)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E8D #2C8D1E
analogous
#471E8D #7F1E8D #8D1E63
triadic
#7F1E8D #8D7F1E #1E8D7F
tetradic
#7F1E8D #8D471E #2C8D1E #1E638D
square
#7F1E8D #8D471E #2C8D1E #1E638D
split-complementary
#7F1E8D #638D1E #1E8D47
monochromatic
#240928 #52135B #7F1E8D #AC29BF #C74CD9

Accessibility & contrast

On white

8.49
#7F1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7F1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E8D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E8D#FFFFFF#000000##FFFFFF
##7F1E8D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#813455
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1e8d;
/* rgb */ color: rgb(127, 30, 141);
/* oklch */ color: oklch(44.3% 0.183 322.2);
Tailwind
colors: {
  custom: {
    50: '#a866af',
    500: '#7f1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e8d;
$custom-light: #a866af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e8d",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 292.432,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4433,
    "c": 0.18299,
    "h": 322.2
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

primary
#7F1E8D
secondary
#59BC4B
accent
#E84055
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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