#7F1F8A#7F1F8A

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

Color values

HEX#7F1F8A
RGBrgb(127, 31, 138)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 78%, 54%)
CMYKcmyk(8%, 77.5%, 0%, 45.9%)
CIE-LABlab(32.54, 53.75, -38.33)
CIE-LCHlch(32.54, 66.01, 324.51°)
OKLaboklab(44.21% 0.144 -0.107)
OKLCHoklch(44.21% 0.179 323.4)
XYZxyz(13.8294, 7.3278, 24.7258)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F8A #2A8A1F
analogous
#491F8A #7F1F8A #8A1F5F
triadic
#7F1F8A #8A7F1F #1F8A7F
tetradic
#7F1F8A #8A491F #2A8A1F #1F5F8A
square
#7F1F8A #8A491F #2A8A1F #1F5F8A
split-complementary
#7F1F8A #5F8A1F #1F8A49
monochromatic
#230926 #511458 #7F1F8A #AD2ABC #C94CD7

Accessibility & contrast

On white

8.52
#7F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1F8A
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F8A#FFFFFF#000000##FFFFFF
##7F1F8A1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#813354
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1f8a;
/* rgb */ color: rgb(127, 31, 138);
/* oklch */ color: oklch(44.2% 0.179 323.4);
Tailwind
colors: {
  custom: {
    50: '#a866ad',
    500: '#7f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f8a;
$custom-light: #a866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f8a",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 293.832,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4421,
    "c": 0.17944,
    "h": 323.4
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#7F1F8A
secondary
#57BA4B
accent
#E64152
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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