#7A127E#7A127E

#7A127E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.179 H 326.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#7A127E
RGBrgb(122, 18, 126)
HSLhsl(298, 75%, 28%)
HSVhsv(298, 86%, 49%)
CMYKcmyk(3.2%, 85.7%, 0%, 50.6%)
CIE-LABlab(29.61, 54.31, -35.58)
CIE-LCHlch(29.61, 64.92, 326.77°)
OKLaboklab(41.72% 0.1495 -0.0991)
OKLCHoklch(41.72% 0.179 326.5)
XYZxyz(12.0080, 6.0774, 20.2752)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A127E #167E12
analogous
#44127E #7A127E #7E124C
triadic
#7A127E #7E7A12 #127E7A
tetradic
#7A127E #7E4412 #167E12 #124C7E
square
#7A127E #7E4412 #167E12 #124C7E
split-complementary
#7A127E #4C7E12 #127E44
monochromatic
#1A041B #460A48 #7A127E #AE1AB4 #DA2AE1

Accessibility & contrast

On white

9.48
#7A127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A127E
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A127E#FFFFFF#000000##FFFFFF
##7A127E1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a127e;
/* rgb */ color: rgb(122, 18, 126);
/* oklch */ color: oklch(41.7% 0.179 326.5);
Tailwind
colors: {
  custom: {
    50: '#a460a4',
    500: '#7a127e',
    950: '#000000',
  },
}
SCSS
$custom: #7a127e;
$custom-light: #a460a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a127e",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 297.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41715,
    "c": 0.17933,
    "h": 326.5
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#7A127E
secondary
#3DB438
accent
#F2363D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A127E

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

Preview Lab → · Contrast checker → · Palette generator →

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