#7A1B8B#7A1B8B

#7A1B8B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.182 H 320.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7A1B8B
RGBrgb(122, 27, 139)
HSLhsl(291, 67%, 33%)
HSVhsv(291, 81%, 55%)
CMYKcmyk(12.2%, 80.6%, 0%, 45.5%)
CIE-LABlab(31.32, 54.18, -40.96)
CIE-LCHlch(31.32, 67.92, 322.91°)
OKLaboklab(43.2% 0.1414 -0.1149)
OKLCHoklch(43.2% 0.182 320.9)
XYZxyz(13.0776, 6.7862, 25.0421)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B8B #2C8B1B
analogous
#421B8B #7A1B8B #8B1B64
triadic
#7A1B8B #8B7A1B #1B8B7A
tetradic
#7A1B8B #8B421B #2C8B1B #1B648B
square
#7A1B8B #8B421B #2C8B1B #1B648B
split-complementary
#7A1B8B #648B1B #1B8B42
monochromatic
#200725 #4D1158 #7A1B8B #A725BE #C445DB

Accessibility & contrast

On white

8.91
#7A1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B8B
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B8B#FFFFFF#000000##FFFFFF
##7A1B8B1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#294D89
Tritanopia (blue-blind)
#7B3353
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1b8b;
/* rgb */ color: rgb(122, 27, 139);
/* oklch */ color: oklch(43.2% 0.182 320.9);
Tailwind
colors: {
  custom: {
    50: '#a464ad',
    500: '#7a1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b8b;
$custom-light: #a464ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b8b",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 290.893,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43197,
    "c": 0.18215,
    "h": 320.9
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#7A1B8B
secondary
#57BC45
accent
#EA3D58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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