#7A1C7B#7A1C7B

#7A1C7B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.168 H 327.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7A1C7B
RGBrgb(122, 28, 123)
HSLhsl(299, 63%, 30%)
HSVhsv(299, 77%, 48%)
CMYKcmyk(0.8%, 77.2%, 0%, 51.8%)
CIE-LABlab(30.40, 50.96, -32.42)
CIE-LCHlch(30.40, 60.40, 327.53°)
OKLaboklab(42.22% 0.1417 -0.0899)
OKLCHoklch(42.22% 0.168 327.6)
XYZxyz(12.0163, 6.3990, 19.3373)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1C7B #1D7B1C
analogous
#4A1C7B #7A1C7B #7B1C4D
triadic
#7A1C7B #7B7A1C #1C7B7A
tetradic
#7A1C7B #7B4A1C #1D7B1C #1C4D7B
square
#7A1C7B #7B4A1C #1D7B1C #1C4D7B
split-complementary
#7A1C7B #4D7B1C #1C7B4A
monochromatic
#190619 #491149 #7A1C7B #AB27AD #D23ED3

Accessibility & contrast

On white

9.21
#7A1C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7A1C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1C7B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1C7B#FFFFFF#000000##FFFFFF
##7A1C7B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7E2C4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1c7b;
/* rgb */ color: rgb(122, 28, 123);
/* oklch */ color: oklch(42.2% 0.168 327.6);
Tailwind
colors: {
  custom: {
    50: '#a464a1',
    500: '#7a1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1c7b;
$custom-light: #a464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1c7b",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 299.368,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42216,
    "c": 0.16783,
    "h": 327.6
  },
  "luminance": 0.06398
}

Semantic roles & 50–950 ramp

primary
#7A1C7B
secondary
#45AF44
accent
#E64244
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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