#7A147E#7A147E

#7A147E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.178 H 326.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7A147E
RGBrgb(122, 20, 126)
HSLhsl(298, 73%, 29%)
HSVhsv(298, 84%, 49%)
CMYKcmyk(3.2%, 84.1%, 0%, 50.6%)
CIE-LABlab(29.78, 53.82, -35.31)
CIE-LCHlch(29.78, 64.36, 326.73°)
OKLaboklab(41.83% 0.1481 -0.0983)
OKLCHoklch(41.83% 0.178 326.4)
XYZxyz(12.0419, 6.1451, 20.2865)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A147E #187E14
analogous
#45147E #7A147E #7E144D
triadic
#7A147E #7E7A14 #147E7A
tetradic
#7A147E #7E4514 #187E14 #144D7E
square
#7A147E #7E4514 #187E14 #144D7E
split-complementary
#7A147E #4D7E14 #147E45
monochromatic
#1A041A #470C49 #7A147E #AD1CB3 #D72EDE

Accessibility & contrast

On white

9.42
#7A147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A147E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A147E#FFFFFF#000000##FFFFFF
##7A147E1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#7D294A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a147e;
/* rgb */ color: rgb(122, 20, 126);
/* oklch */ color: oklch(41.8% 0.178 326.4);
Tailwind
colors: {
  custom: {
    50: '#a461a4',
    500: '#7a147e',
    950: '#000000',
  },
}
SCSS
$custom: #7a147e;
$custom-light: #a461a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a147e",
  "rgb": {
    "r": 122,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 297.736,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41834,
    "c": 0.17775,
    "h": 326.4
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#7A147E
secondary
#3FB33A
accent
#EF383F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A147E

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

Preview Lab → · Contrast checker → · Palette generator →

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