#7A1C8D#7A1C8D

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

Color values

HEX#7A1C8D
RGBrgb(122, 28, 141)
HSLhsl(290, 67%, 33%)
HSVhsv(290, 80%, 55%)
CMYKcmyk(13.5%, 80.1%, 0%, 44.7%)
CIE-LABlab(31.56, 54.25, -41.80)
CIE-LCHlch(31.56, 68.49, 322.38°)
OKLaboklab(43.41% 0.1403 -0.1173)
OKLCHoklch(43.41% 0.183 320.1)
XYZxyz(13.2484, 6.8919, 25.8266)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1C8D #2F8D1C
analogous
#421C8D #7A1C8D #8D1C67
triadic
#7A1C8D #8D7A1C #1C8D7A
tetradic
#7A1C8D #8D421C #2F8D1C #1C678D
square
#7A1C8D #8D421C #2F8D1C #1C678D
split-complementary
#7A1C8D #678D1C #1C8D42
monochromatic
#220827 #4E125A #7A1C8D #A626C0 #C249DB

Accessibility & contrast

On white

8.83
#7A1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1C8D
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1C8D#FFFFFF#000000##FFFFFF
##7A1C8D1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#284D8B
Tritanopia (blue-blind)
#7A3455
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a1c8d;
/* rgb */ color: rgb(122, 28, 141);
/* oklch */ color: oklch(43.4% 0.183 320.1);
Tailwind
colors: {
  custom: {
    50: '#a465af',
    500: '#7a1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1c8d;
$custom-light: #a465af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1c8d",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 289.912,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.18289,
    "h": 320.1
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#7A1C8D
secondary
#5CBD48
accent
#EA3E5B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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