#7A1F8F#7A1F8F

#7A1F8F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.182 H 319.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7A1F8F
RGBrgb(122, 31, 143)
HSLhsl(289, 64%, 34%)
HSVhsv(289, 78%, 56%)
CMYKcmyk(14.7%, 78.3%, 0%, 43.9%)
CIE-LABlab(32.04, 53.65, -42.27)
CIE-LCHlch(32.04, 68.30, 321.76°)
OKLaboklab(43.79% 0.1374 -0.1187)
OKLCHoklch(43.79% 0.182 319.2)
XYZxyz(13.4733, 7.1014, 26.6423)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F8F #348F1F
analogous
#421F8F #7A1F8F #8F1F6C
triadic
#7A1F8F #8F7A1F #1F8F7A
tetradic
#7A1F8F #8F421F #348F1F #1F6C8F
square
#7A1F8F #8F421F #348F1F #1F6C8F
split-complementary
#7A1F8F #6C8F1F #1F8F42
monochromatic
#24092A #4F145D #7A1F8F #A52AC1 #BF4FD9

Accessibility & contrast

On white

8.68
#7A1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7A1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F8F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F8F#FFFFFF#000000##FFFFFF
##7A1F8F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#274E8D
Tritanopia (blue-blind)
#7A3756
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1f8f;
/* rgb */ color: rgb(122, 31, 143);
/* oklch */ color: oklch(43.8% 0.182 319.2);
Tailwind
colors: {
  custom: {
    50: '#a466b0',
    500: '#7a1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f8f;
$custom-light: #a466b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f8f",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 288.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43793,
    "c": 0.18163,
    "h": 319.2
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#7A1F8F
secondary
#63BC4E
accent
#E74060
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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