#7A1B96#7A1B96

#7A1B96 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.192 H 316.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7A1B96
RGBrgb(122, 27, 150)
HSLhsl(286, 69%, 35%)
HSVhsv(286, 82%, 59%)
CMYKcmyk(18.7%, 82%, 0%, 41.2%)
CIE-LABlab(32.09, 56.29, -46.49)
CIE-LCHlch(32.09, 73.01, 320.45°)
OKLaboklab(43.99% 0.1397 -0.1311)
OKLCHoklch(43.99% 0.192 316.8)
XYZxyz(13.9222, 7.1241, 29.4900)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B96 #37961B
analogous
#3C1B96 #7A1B96 #961B75
triadic
#7A1B96 #967A1B #1B967A
tetradic
#7A1B96 #963C1B #37961B #1B7596
square
#7A1B96 #963C1B #37961B #1B7596
split-complementary
#7A1B96 #75961B #1B963C
monochromatic
#26082E #501262 #7A1B96 #A424CA #BE4DDF

Accessibility & contrast

On white

8.66
#7A1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7A1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B96
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B96#FFFFFF#000000##FFFFFF
##7A1B961.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1C4E93
Tritanopia (blue-blind)
#78385A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1b96;
/* rgb */ color: rgb(122, 27, 150);
/* oklch */ color: oklch(44.0% 0.192 316.8);
Tailwind
colors: {
  custom: {
    50: '#a565b6',
    500: '#7a1b96',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b96;
$custom-light: #a565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b96",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 286.341,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43986,
    "c": 0.19155,
    "h": 316.8
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#7A1B96
secondary
#66C14C
accent
#EC3B64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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