#7A1C8C#7A1C8C

#7A1C8C is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.182 H 320.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7A1C8C
RGBrgb(122, 28, 140)
HSLhsl(290, 67%, 33%)
HSVhsv(290, 80%, 55%)
CMYKcmyk(12.9%, 80%, 0%, 45.1%)
CIE-LABlab(31.49, 54.06, -41.30)
CIE-LCHlch(31.49, 68.03, 322.62°)
OKLaboklab(43.34% 0.1404 -0.1159)
OKLCHoklch(43.34% 0.182 320.5)
XYZxyz(13.1743, 6.8622, 25.4365)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1C8C #2E8C1C
analogous
#421C8C #7A1C8C #8C1C66
triadic
#7A1C8C #8C7A1C #1C8C7A
tetradic
#7A1C8C #8C421C #2E8C1C #1C668C
square
#7A1C8C #8C421C #2E8C1C #1C668C
split-complementary
#7A1C8C #668C1C #1C8C42
monochromatic
#210826 #4E1259 #7A1C8C #A626BF #C348DA

Accessibility & contrast

On white

8.85
#7A1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7A1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1C8C
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1C8C#FFFFFF#000000##FFFFFF
##7A1C8C1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#294D8A
Tritanopia (blue-blind)
#7B3454
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1c8c;
/* rgb */ color: rgb(122, 28, 140);
/* oklch */ color: oklch(43.3% 0.182 320.5);
Tailwind
colors: {
  custom: {
    50: '#a464ae',
    500: '#7a1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7a1c8c;
$custom-light: #a464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1c8c",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 290.357,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43343,
    "c": 0.18204,
    "h": 320.5
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#7A1C8C
secondary
#5ABC48
accent
#EA3E5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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