#7A1D7B#7A1D7B

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

Color values

HEX#7A1D7B
RGBrgb(122, 29, 123)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 76%, 48%)
CMYKcmyk(0.8%, 76.4%, 0%, 51.8%)
CIE-LABlab(30.51, 50.62, -32.24)
CIE-LCHlch(30.51, 60.02, 327.51°)
OKLaboklab(42.3% 0.1407 -0.0894)
OKLCHoklch(42.3% 0.167 327.6)
XYZxyz(12.0404, 6.4472, 19.3453)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D7B #1E7B1D
analogous
#4B1D7B #7A1D7B #7B1D4D
triadic
#7A1D7B #7B7A1D #1D7B7A
tetradic
#7A1D7B #7B4B1D #1E7B1D #1D4D7B
square
#7A1D7B #7B4B1D #1E7B1D #1D4D7B
split-complementary
#7A1D7B #4D7B1D #1D7B4B
monochromatic
#190619 #491149 #7A1D7B #AB29AD #D140D2

Accessibility & contrast

On white

9.17
#7A1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D7B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D7B#FFFFFF#000000##FFFFFF
##7A1D7B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7E2C4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1d7b;
/* rgb */ color: rgb(122, 29, 123);
/* oklch */ color: oklch(42.3% 0.167 327.6);
Tailwind
colors: {
  custom: {
    50: '#a464a1',
    500: '#7a1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d7b;
$custom-light: #a464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d7b",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 299.362,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42299,
    "c": 0.16675,
    "h": 327.6
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#7A1D7B
secondary
#46AF45
accent
#E54345
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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