#7F1F8D#7F1F8D

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

Color values

HEX#7F1F8D
RGBrgb(127, 31, 141)
HSLhsl(292, 64%, 34%)
HSVhsv(292, 78%, 55%)
CMYKcmyk(9.9%, 78%, 0%, 44.7%)
CIE-LABlab(32.74, 54.30, -39.87)
CIE-LCHlch(32.74, 67.37, 323.71°)
OKLaboklab(44.41% 0.1438 -0.1115)
OKLCHoklch(44.41% 0.182 322.2)
XYZxyz(14.0496, 7.4159, 25.8855)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F8D #2D8D1F
analogous
#481F8D #7F1F8D #8D1F64
triadic
#7F1F8D #8D7F1F #1F8D7F
tetradic
#7F1F8D #8D481F #2D8D1F #1F648D
square
#7F1F8D #8D481F #2D8D1F #1F648D
split-complementary
#7F1F8D #648D1F #1F8D48
monochromatic
#250929 #52145B #7F1F8D #AC2ABF #C74ED8

Accessibility & contrast

On white

8.46
#7F1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F8D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F8D#FFFFFF#000000##FFFFFF
##7F1F8D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#30518A
Tritanopia (blue-blind)
#813555
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f1f8d;
/* rgb */ color: rgb(127, 31, 141);
/* oklch */ color: oklch(44.4% 0.182 322.2);
Tailwind
colors: {
  custom: {
    50: '#a866af',
    500: '#7f1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f8d;
$custom-light: #a866af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f8d",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 292.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4441,
    "c": 0.18198,
    "h": 322.2
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#7F1F8D
secondary
#5BBB4D
accent
#E74156
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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