#7A1B9E#7A1B9E

#7A1B9E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.198 H 314.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7A1B9E
RGBrgb(122, 27, 158)
HSLhsl(284, 71%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(22.8%, 82.9%, 0%, 38%)
CIE-LABlab(32.68, 57.88, -50.41)
CIE-LCHlch(32.68, 76.75, 318.95°)
OKLaboklab(44.59% 0.138 -0.1426)
OKLCHoklch(44.59% 0.198 314.1)
XYZxyz(14.5885, 7.3906, 32.9992)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B9E #3F9E1B
analogous
#381B9E #7A1B9E #9E1B81
triadic
#7A1B9E #9E7A1B #1B9E7A
tetradic
#7A1B9E #9E381B #3F9E1B #1B819E
square
#7A1B9E #9E381B #3F9E1B #1B819E
split-complementary
#7A1B9E #819E1B #1B9E38
monochromatic
#290935 #52126A #7A1B9E #A224D2 #BA52E1

Accessibility & contrast

On white

8.47
#7A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B9E
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B9E#FFFFFF#000000##FFFFFF
##7A1B9E1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#0A4F9B
Tritanopia (blue-blind)
#763C5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1b9e;
/* rgb */ color: rgb(122, 27, 158);
/* oklch */ color: oklch(44.6% 0.198 314.1);
Tailwind
colors: {
  custom: {
    50: '#a565bb',
    500: '#7a1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b9e;
$custom-light: #a565bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b9e",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 283.511,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.19846,
    "h": 314.1
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

primary
#7A1B9E
secondary
#70C451
accent
#EE3A6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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