#7A1A9B#7A1A9B

#7A1A9B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.3% C 0.197 H 315.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7A1A9B
RGBrgb(122, 26, 155)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 61%)
CMYKcmyk(21.3%, 83.2%, 0%, 39.2%)
CIE-LABlab(32.35, 57.57, -49.11)
CIE-LCHlch(32.35, 75.67, 319.53°)
OKLaboklab(44.29% 0.1394 -0.1388)
OKLCHoklch(44.29% 0.197 315.1)
XYZxyz(14.3109, 7.2435, 31.6483)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1A9B #3B9B1A
analogous
#391A9B #7A1A9B #9B1A7B
triadic
#7A1A9B #9B7A1A #1A9B7A
tetradic
#7A1A9B #9B391A #3B9B1A #1A7B9B
square
#7A1A9B #9B391A #3B9B1A #1A7B9B
split-complementary
#7A1A9B #7B9B1A #1A9B39
monochromatic
#270832 #511167 #7A1A9B #A323CF #BC4EE1

Accessibility & contrast

On white

8.58
#7A1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7A1A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1A9B
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1A9B#FFFFFF#000000##FFFFFF
##7A1A9B1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#114E98
Tritanopia (blue-blind)
#773A5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a1a9b;
/* rgb */ color: rgb(122, 26, 155);
/* oklch */ color: oklch(44.3% 0.197 315.1);
Tailwind
colors: {
  custom: {
    50: '#a565b9',
    500: '#7a1a9b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1a9b;
$custom-light: #a565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1a9b",
  "rgb": {
    "r": 122,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 284.651,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44289,
    "c": 0.1967,
    "h": 315.1
  },
  "luminance": 0.07243
}

Semantic roles & 50–950 ramp

primary
#7A1A9B
secondary
#6CC44D
accent
#EE3A68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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