#7A1B8A#7A1B8A

#7A1B8A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.181 H 321.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7A1B8A
RGBrgb(122, 27, 138)
HSLhsl(291, 67%, 32%)
HSVhsv(291, 80%, 54%)
CMYKcmyk(11.6%, 80.4%, 0%, 45.9%)
CIE-LABlab(31.25, 53.99, -40.45)
CIE-LCHlch(31.25, 67.46, 323.16°)
OKLaboklab(43.13% 0.1415 -0.1134)
OKLCHoklch(43.13% 0.181 321.3)
XYZxyz(13.0049, 6.7572, 24.6591)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B8A #2B8A1B
analogous
#421B8A #7A1B8A #8A1B63
triadic
#7A1B8A #8A7A1B #1B8A7A
tetradic
#7A1B8A #8A421B #2B8A1B #1B638A
square
#7A1B8A #8A421B #2B8A1B #1B638A
split-complementary
#7A1B8A #638A1B #1B8A42
monochromatic
#1F0724 #4D1157 #7A1B8A #A725BD #C545DB

Accessibility & contrast

On white

8.93
#7A1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B8A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B8A#FFFFFF#000000##FFFFFF
##7A1B8A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#2A4D88
Tritanopia (blue-blind)
#7B3253
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1b8a;
/* rgb */ color: rgb(122, 27, 138);
/* oklch */ color: oklch(43.1% 0.181 321.3);
Tailwind
colors: {
  custom: {
    50: '#a464ad',
    500: '#7a1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b8a;
$custom-light: #a464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b8a",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 291.351,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43127,
    "c": 0.18131,
    "h": 321.3
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#7A1B8A
secondary
#56BC45
accent
#EA3E57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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