#7A1F8A#7A1F8A

#7A1F8A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.177 H 321.1°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7A1F8A
RGBrgb(122, 31, 138)
HSLhsl(291, 63%, 33%)
HSVhsv(291, 78%, 54%)
CMYKcmyk(11.6%, 77.5%, 0%, 45.9%)
CIE-LABlab(31.70, 52.69, -39.72)
CIE-LCHlch(31.70, 65.98, 322.99°)
OKLaboklab(43.45% 0.138 -0.1113)
OKLCHoklch(43.45% 0.177 321.1)
XYZxyz(13.1029, 6.9532, 24.6918)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F8A #2F8A1F
analogous
#441F8A #7A1F8A #8A1F64
triadic
#7A1F8A #8A7A1F #1F8A7A
tetradic
#7A1F8A #8A441F #2F8A1F #1F648A
square
#7A1F8A #8A441F #2F8A1F #1F648A
split-complementary
#7A1F8A #648A1F #1F8A44
monochromatic
#220926 #4E1458 #7A1F8A #A62ABC #C24CD7

Accessibility & contrast

On white

8.78
#7A1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7A1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F8A
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F8A#FFFFFF#000000##FFFFFF
##7A1F8A1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2C4E88
Tritanopia (blue-blind)
#7B3554
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1f8a;
/* rgb */ color: rgb(122, 31, 138);
/* oklch */ color: oklch(43.4% 0.177 321.1);
Tailwind
colors: {
  custom: {
    50: '#a466ad',
    500: '#7a1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f8a;
$custom-light: #a466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f8a",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 291.028,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43448,
    "c": 0.17727,
    "h": 321.1
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#7A1F8A
secondary
#5CBA4B
accent
#E6415A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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