#7A1D8B#7A1D8B

#7A1D8B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.180 H 320.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7A1D8B
RGBrgb(122, 29, 139)
HSLhsl(291, 65%, 33%)
HSVhsv(291, 79%, 55%)
CMYKcmyk(12.2%, 79.1%, 0%, 45.5%)
CIE-LABlab(31.53, 53.55, -40.61)
CIE-LCHlch(31.53, 67.20, 322.83°)
OKLaboklab(43.35% 0.1397 -0.1138)
OKLCHoklch(43.35% 0.18 320.8)
XYZxyz(13.1251, 6.8811, 25.0579)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D8B #2E8B1D
analogous
#431D8B #7A1D8B #8B1D65
triadic
#7A1D8B #8B7A1D #1D8B7A
tetradic
#7A1D8B #8B431D #2E8B1D #1D658B
square
#7A1D8B #8B431D #2E8B1D #1D658B
split-complementary
#7A1D8B #658B1D #1D8B43
monochromatic
#210826 #4E1258 #7A1D8B #A628BE #C349D9

Accessibility & contrast

On white

8.84
#7A1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7A1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D8B
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D8B#FFFFFF#000000##FFFFFF
##7A1D8B1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#7B3454
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1d8b;
/* rgb */ color: rgb(122, 29, 139);
/* oklch */ color: oklch(43.4% 0.180 320.8);
Tailwind
colors: {
  custom: {
    50: '#a465ad',
    500: '#7a1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d8b;
$custom-light: #a465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d8b",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 290.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43352,
    "c": 0.18019,
    "h": 320.8
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#7A1D8B
secondary
#5ABB49
accent
#E83F59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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