#7A1B7D#7A1B7D

#7A1B7D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.171 H 326.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7A1B7D
RGBrgb(122, 27, 125)
HSLhsl(298, 64%, 30%)
HSVhsv(298, 78%, 49%)
CMYKcmyk(2.4%, 78.4%, 0%, 51%)
CIE-LABlab(30.41, 51.63, -33.67)
CIE-LCHlch(30.41, 61.64, 326.89°)
OKLaboklab(42.26% 0.1425 -0.0936)
OKLCHoklch(42.26% 0.171 326.7)
XYZxyz(12.1194, 6.4030, 19.9956)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B7D #1E7D1B
analogous
#491B7D #7A1B7D #7D1B4F
triadic
#7A1B7D #7D7A1B #1B7D7A
tetradic
#7A1B7D #7D491B #1E7D1B #1B4F7D
square
#7A1B7D #7D491B #1E7D1B #1B4F7D
split-complementary
#7A1B7D #4F7D1B #1B7D49
monochromatic
#190519 #49104B #7A1B7D #AB26AF #D03DD5

Accessibility & contrast

On white

9.21
#7A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B7D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B7D#FFFFFF#000000##FFFFFF
##7A1B7D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7D2C4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1b7d;
/* rgb */ color: rgb(122, 27, 125);
/* oklch */ color: oklch(42.3% 0.171 326.7);
Tailwind
colors: {
  custom: {
    50: '#a463a3',
    500: '#7a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b7d;
$custom-light: #a463a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b7d",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 298.163,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42262,
    "c": 0.1705,
    "h": 326.7
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#7A1B7D
secondary
#46B143
accent
#E74045
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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