#7F1E8A#7F1E8A

#7F1E8A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.180 H 323.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7F1E8A
RGBrgb(127, 30, 138)
HSLhsl(294, 64%, 33%)
HSVhsv(294, 78%, 54%)
CMYKcmyk(8%, 78.3%, 0%, 45.9%)
CIE-LABlab(32.43, 54.08, -38.51)
CIE-LCHlch(32.43, 66.39, 324.55°)
OKLaboklab(44.13% 0.1449 -0.1076)
OKLCHoklch(44.13% 0.18 323.4)
XYZxyz(13.8037, 7.2764, 24.7172)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E8A #298A1E
analogous
#491E8A #7F1E8A #8A1E5F
triadic
#7F1E8A #8A7F1E #1E8A7F
tetradic
#7F1E8A #8A491E #298A1E #1E5F8A
square
#7F1E8A #8A491E #298A1E #1E5F8A
split-complementary
#7F1E8A #5F8A1E #1E8A49
monochromatic
#220825 #511358 #7F1E8A #AD29BC #C94BD8

Accessibility & contrast

On white

8.55
#7F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7F1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E8A
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E8A#FFFFFF#000000##FFFFFF
##7F1E8A1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#813353
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1e8a;
/* rgb */ color: rgb(127, 30, 138);
/* oklch */ color: oklch(44.1% 0.180 323.4);
Tailwind
colors: {
  custom: {
    50: '#a866ad',
    500: '#7f1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e8a;
$custom-light: #a866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e8a",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 293.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44129,
    "c": 0.18047,
    "h": 323.4
  },
  "luminance": 0.07276
}

Semantic roles & 50–950 ramp

primary
#7F1E8A
secondary
#55BA4A
accent
#E74152
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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